/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 78 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 = 7409
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1631
RA = 162.913, Dec = 21.1651
tmin = 662083201, tmax = 662342401
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='553315', job_status='RUN', time_executed='2021-12-28 00:11:11.226894', time_epoch_executed='1640679071.23' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/553315

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/553315/ft1_4FGL_J1051.6+2109_daily_bin1631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/553315/ft2_4FGL_J1051.6+2109_daily_bin1631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/553315/ft1_4FGL_J1051.6+2109_daily_bin1631.fits outfile=/scratch/kocevski/553315/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1631.fits ra=162.913 dec=21.1651 rad=12.0 tmin=662083201.0 tmax=662342401.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.89
user 3.66
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/553315/ft1_filtered_4FGL_J1051.6+2109_daily_bin1631.fits" evtable="EVENTS" scfile=/scratch/kocevski/553315/ft2_4FGL_J1051.6+2109_daily_bin1631.fits sctable="SC_DATA" outfile=/scratch/kocevski/553315/ltcube_662083201_662342401_4FGL_J1051.6+2109_daily_bin1631.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/553315/ft2_4FGL_J1051.6+2109_daily_bin1631.fits
.....................!
real 22.76
user 22.34
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/553315/ft1_filtered_4FGL_J1051.6+2109_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/553315/ft2_4FGL_J1051.6+2109_daily_bin1631.fits sctable="SC_DATA" expcube=/scratch/kocevski/553315/ltcube_662083201_662342401_4FGL_J1051.6+2109_daily_bin1631.fits outfile=/scratch/kocevski/553315/expmap_662083201_662342401_4FGL_J1051.6+2109_daily_bin1631.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/553315/ltcube_662083201_662342401_4FGL_J1051.6+2109_daily_bin1631.fits
.....................!
real 191.47
user 185.70
sys 5.45

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/553315/ft1_filtered_4FGL_J1051.6+2109_daily_bin1631.fits scfile=/scratch/kocevski/553315/ft2_4FGL_J1051.6+2109_daily_bin1631.fits outfile=/scratch/kocevski/553315/cmap_662083201_662342401_4FGL_J1051.6+2109_daily_bin1631.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/553315/ft1_filtered_4FGL_J1051.6+2109_daily_bin1631.fits scfile=/scratch/kocevski/553315/ft2_4FGL_J1051.6+2109_daily_bin1631.fits outfile=/scratch/kocevski/553315/cmap_HighResolution_662083201_662342401_4FGL_J1051.6+2109_daily_bin1631.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/553315/ft1_filtered_4FGL_J1051.6+2109_daily_bin1631.fits', '/scratch/kocevski/553315/ft2_4FGL_J1051.6+2109_daily_bin1631.fits', expMap='/scratch/kocevski/553315/expmap_662083201_662342401_4FGL_J1051.6+2109_daily_bin1631.fits', expCube='/scratch/kocevski/553315/ltcube_662083201_662342401_4FGL_J1051.6+2109_daily_bin1631.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/553315/Model_4FGL_J1051.6+2109_daily_bin1631.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/553315/ft1_filtered_4FGL_J1051.6+2109_daily_bin1631.fits
Spacecraft file(s): /scratch/kocevski/553315/ft2_4FGL_J1051.6+2109_daily_bin1631.fits
Exposure map: /scratch/kocevski/553315/expmap_662083201_662342401_4FGL_J1051.6+2109_daily_bin1631.fits
Exposure cube: /scratch/kocevski/553315/ltcube_662083201_662342401_4FGL_J1051.6+2109_daily_bin1631.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/553315/Model_4FGL_J1051.6+2109_daily_bin1631.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) = 4057.76896414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.582       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    56.979       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10816E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.708       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8171       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9427       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0284       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .47629       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.084       1.0000         .10000E-03   10000.    
    15 'norm      '    17.284       1.0000         .10000E-03   10000.    
    16 'norm      '    4.2616       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5279       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .47248       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=   4057.769     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2584 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9352        .19430E-07** at limit **
   2  Prefactor     28.583        46.282        .18964E-05    .53234E-04
   3  Prefactor     .10000E-03    43.928       -.31613E-05** at limit **
   4  Prefactor     .10000E-03    6.3533       -.27647E-07** at limit **
   5  Prefactor     .10000E-03    .66047       -.38470E-07** at limit **
   6  Prefactor     56.979        14.939       -.21340E-07   -.16809E-03
   7  Prefactor     .10009E-03    9.7882        .40272E-05** at limit **
   8  Prefactor     11.707        28.277       -.78901E-06   -.33638E-04
   9  Prefactor     3.8139        6.6917        .87894E-06   -.12963E-02
  10  Prefactor     3.9418        9.9677        .40060E-07   -.35476E-04
  11  Prefactor     .10002E-03    17.468       -.10848E-04** at limit **
  12  norm          3.0283        2.0948        .35882E-07   -.84691E-04
  13  Prefactor     .47378        3.8645       -.15879E-06   -.16859E-03
  14  Prefactor     20.083        11.972        .21543E-07   -.46403E-04
  15  norm          17.284        15.889       -.45369E-07   -.34109E-04
  16  norm          4.2606        8.6661        .87955E-06   -.76732E-03
  17  Prefactor     .10000E-03    8.4368       -.21445E-06** at limit **
  18  Prefactor     .10000E-03    13.234        .20917E-05** at limit **
  19  Normalizat    1.5280        .23296       -.26768E-06   -.23328E-03
  20  Prefactor     .47242        .22253       -.81618E-07   -.11574E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 28.5833
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.9786
  Prefactor  = 0.000100095
  Prefactor  = 11.707
  Prefactor  = 3.81393
  Prefactor  = 3.94185
  Prefactor  = 0.00010002
  norm       = 3.02827
  Prefactor  = 0.473783
  Prefactor  = 20.0829
  norm       = 17.284
  norm       = 4.26061
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.52795
  Prefactor  = 0.472421
 **********
 **   18 **HESSE 
 **********

 FCN=   4057.769     FROM HESSE     STATUS=OK           293 CALLS     2877 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9416        .12341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.583        46.300        .74939E-04   -1.4638    
   3  Prefactor     .10000E-03    44.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5005        .15674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .66221        .50552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     56.979        14.976        .53145E-04   -1.4197    
   7  Prefactor     .10009E-03    21.796        .32587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.707        28.280        .11708E-03   -1.5024    
   9  Prefactor     3.8139        8.4685        .10329E-02   -1.5317    
  10  Prefactor     3.9418        9.7216        .20316E-03   -1.5311    
  11  Prefactor     .10002E-03    18.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0283        2.0880        .72023E-04   -1.5360    
  13  Prefactor     .47378        6.8412        .21655E-02   -1.5570    
  14  Prefactor     20.083        12.026        .89374E-04   -1.4811    
  15  norm          17.284        15.890        .96337E-04   -1.4876    
  16  norm          4.2606        10.197        .97587E-03   -1.5295    
  17  Prefactor     .10000E-03    8.4667        .18065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5280        .26404        .21513E-03   -.76996    
  20  Prefactor     .47242        .24854        .36698E-03   -1.1326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76277e-08
Minuit parameter uncertainties:
  1  5.65257e-07
  2  46.3578
  3  0.000519504
  4  1.44479e-05
  5  1.48152e-06
  6  14.9775
  7  0.00287215
  8  28.3124
  9  8.47118
  10  9.72551
  11  0.0012244
  12  2.08808
  13  3.60081
  14  12.0274
  15  15.8943
  16  10.2012
  17  1.56716e-05
  18  0.000189563
  19  0.264281
  20  0.249109
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.001e-04  2.872e-03  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:  4.724e-01  2.491e-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:  1.528e+00  2.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/553315/likelihoodResults_662083201_662342401_4FGL_J1051.6+2109_daily_bin1631.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4057.76881998
delta logL = -0.000217631326905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4057.76860405
delta logL = -1.69606801137e-06

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 'Index     '    3.4685       1.0000          .0000       10.000    
     3 'Normalizat'    1.5279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47242       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4057.769     FROM MIGRAD    STATUS=FAILED       105 CALLS      303 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11427E-03    157.23        .21698E-02** at limit **
   2  Index         3.1446        8.2828        .50000        .12959E-04
   3  Normalizat    1.5280        .16058E-01    .21513E-03   -.37985E-04
   4  Prefactor     .47242        .16159E-01    .36698E-03   -.37949E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4057.769     FROM SIMPLEX   STATUS=PROGRESS     122 CALLS      425 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10711E-03    157.23        .56946E-03** at limit **
   2  Index         3.1428        8.2828        .54266E-03    .12959E-04
   3  Normalizat    1.5279        .16058E-01    .43260E-05   -.37985E-04
   4  Prefactor     .47241        .16159E-01    .52938E-05   -.37949E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4057.769     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      471 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10065E-03    97.710        .43397E-02** at limit **
   2  Index         2.9927        7.1456        .50000        .51848E-05
   3  Normalizat    1.5280        .12025E-01    .43026E-04    .35777E-02
   4  Prefactor     .47243        .12101E-01    .14679E-04    .21733E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100646
  Index      = 2.99274
  Normalizat = 1.52796
  Prefactor  = 0.472432
 **********
 **   18 **HESSE 
 **********

 FCN=   4057.769     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      500 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10065E-03    481.34        .86793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9927        6.2194        .50000       -.41310    
   3  Normalizat    1.5280        .27127E-01    .86052E-05   -.76996    
   4  Prefactor     .47243        .27299E-01    .29358E-05   -1.1326    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2589e-08
Minuit parameter uncertainties:
  1  0.0355437
  2  818.541
  3  0.0271271
  4  0.0272997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/553315': 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) = 4057.76860243
delta logL = -7.87331373431e-08

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.006e-04  3.554e-02  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.993e+00  8.185e+02  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:  4.724e-01  2.730e-02  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:  1.528e+00  2.713e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/553315/cmap_HighResolution_662083201_662342401_4FGL_J1051.6+2109_daily_bin1631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-12-28 00:20:44.455061', job_id='553315', GAL2='0.47', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1640679644.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.47', dlogl='-7.87e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1631' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 28 00:20:44 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 553236: <4FGL_J1051.6+2109_daily_bin1631> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1631> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Dec 28 00:06:34 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:06:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:06:36 2021
Terminated at Tue Dec 28 00:18:00 2021
Results reported at Tue Dec 28 00:18:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1631 162.913 21.1651 662083201 662342401 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 :                                   553.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             260.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            686 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 553315: <4FGL_J1051.6+2109_daily_bin1631> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1631> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 28 00:06:38 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:06:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:06:41 2021
Terminated at Tue Dec 28 00:20:45 2021
Results reported at Tue Dec 28 00:20:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1631 162.913 21.1651 662083201 662342401 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 :                                   565.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            847 sec.

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

