/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 41 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 = 7480
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1051.6+2109_daily_bin411
RA = 162.913, Dec = 21.1651
tmin = 345859201, tmax = 346118401
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='251922', job_status='RUN', time_executed='2021-09-02 18:29:26.776180', time_epoch_executed='1630632566.78' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251922

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251922/ft1_4FGL_J1051.6+2109_daily_bin411.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251922/ft2_4FGL_J1051.6+2109_daily_bin411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251922/ft1_4FGL_J1051.6+2109_daily_bin411.fits outfile=/scratch/kocevski/251922/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin411.fits ra=162.913 dec=21.1651 rad=12.0 tmin=345859201.0 tmax=346118401.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.47
user 3.20
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251922/ft1_filtered_4FGL_J1051.6+2109_daily_bin411.fits" evtable="EVENTS" scfile=/scratch/kocevski/251922/ft2_4FGL_J1051.6+2109_daily_bin411.fits sctable="SC_DATA" outfile=/scratch/kocevski/251922/ltcube_345859201_346118401_4FGL_J1051.6+2109_daily_bin411.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/251922/ft2_4FGL_J1051.6+2109_daily_bin411.fits
.....................!
real 17.53
user 17.08
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251922/ft1_filtered_4FGL_J1051.6+2109_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/251922/ft2_4FGL_J1051.6+2109_daily_bin411.fits sctable="SC_DATA" expcube=/scratch/kocevski/251922/ltcube_345859201_346118401_4FGL_J1051.6+2109_daily_bin411.fits outfile=/scratch/kocevski/251922/expmap_345859201_346118401_4FGL_J1051.6+2109_daily_bin411.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/251922/ltcube_345859201_346118401_4FGL_J1051.6+2109_daily_bin411.fits
.....................!
real 195.02
user 189.97
sys 4.30

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/251922/ft1_filtered_4FGL_J1051.6+2109_daily_bin411.fits scfile=/scratch/kocevski/251922/ft2_4FGL_J1051.6+2109_daily_bin411.fits outfile=/scratch/kocevski/251922/cmap_345859201_346118401_4FGL_J1051.6+2109_daily_bin411.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251922/ft1_filtered_4FGL_J1051.6+2109_daily_bin411.fits scfile=/scratch/kocevski/251922/ft2_4FGL_J1051.6+2109_daily_bin411.fits outfile=/scratch/kocevski/251922/cmap_HighResolution_345859201_346118401_4FGL_J1051.6+2109_daily_bin411.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5167       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2668       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9483       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1807       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.674       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9912       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.776       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3797       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .60734       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4257       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5989       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2396       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2474       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .73801       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=   5597.660     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     1728 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5165        5.4224        .17914E-06    .20862E-04
   2  Prefactor     .10000E-03    11.989        .75464E-06** at limit **
   3  Prefactor     9.2976        51.450       -.76011E-05   -.24508E-04
   4  Prefactor     2.9482        6.3255       -.63248E-06   -.27973E-04
   5  Prefactor     1.1807        2.7010       -.27233E-06   -.26318E-04
   6  Prefactor     14.675        8.8206        .10030E-06    .65621E-04
   7  Prefactor     1.9922        9.7496        .12550E-04    .72080E-04
   8  Prefactor     10.773        17.825        .80976E-06    .11625E-04
   9  Prefactor     5.3803        5.8460       -.91125E-06    .11052E-03
  10  Prefactor     .10000E-03    8.1056        .51492E-06** at limit **
  11  Prefactor     .10000E-03    10.193       -.71909E-06** at limit **
  12  norm          .10000E-03    .42745       -.80420E-07** at limit **
  13  Prefactor     .60708        2.5805        .37515E-07   -.46499E-03
  14  Prefactor     2.4269        7.7594        .75334E-05   -.59350E-04
  15  norm          3.5990        8.0184        .40430E-06    .22066E-04
  16  norm          .10000E-03    6.3879       -.25647E-06** at limit **
  17  Prefactor     6.2368        10.214       -.94927E-06    .34030E-04
  18  Prefactor     .10000E-03    10.411       -.67623E-06** at limit **
  19  Normalizat    1.2474        .18253       -.20152E-05    .29068E-03
  20  Prefactor     .73800        .17879        .19686E-06    .10394E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.51654
  Prefactor  = 0.0001
  Prefactor  = 9.29756
  Prefactor  = 2.9482
  Prefactor  = 1.18073
  Prefactor  = 14.6751
  Prefactor  = 1.99217
  Prefactor  = 10.7728
  Prefactor  = 5.3803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.607085
  Prefactor  = 2.42688
  norm       = 3.59904
  norm       = 0.0001
  Prefactor  = 6.23678
  Prefactor  = 0.0001
  Normalizat = 1.24744
  Prefactor  = 0.738001
 **********
 **   18 **HESSE 
 **********

 FCN=   5597.660     FROM HESSE     STATUS=OK           297 CALLS     2025 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5165        5.4185        .16750E-03   -1.5238    
   2  Prefactor     .10000E-03    11.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.2976        51.418        .13165E-03   -1.5098    
   4  Prefactor     2.9482        6.1808        .23653E-03   -1.5365    
   5  Prefactor     1.1807        2.6110        .16169E-03   -1.5491    
   6  Prefactor     14.675        8.8443        .10456E-03   -1.4942    
   7  Prefactor     1.9922        9.7437        .14680E-02   -1.5426    
   8  Prefactor     10.773        17.823        .12205E-03   -1.5051    
   9  Prefactor     5.3803        5.8391        .17326E-03   -1.5244    
  10  Prefactor     .10000E-03    8.1471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .43931        .95468E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .60708        2.6266        .22379E-03   -1.5552    
  14  Prefactor     2.4269        7.7050        .13139E-02   -1.5396    
  15  norm          3.5990        8.0065        .21300E-03   -1.5329    
  16  norm          .10000E-03    6.4505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.2368        10.174        .16070E-03   -1.5208    
  18  Prefactor     .10000E-03    10.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2474        .20907        .20851E-03   -.85149    
  20  Prefactor     .73800        .20560        .27938E-03   -1.0206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.92519e-10
Minuit parameter uncertainties:
  1  5.41895
  2  2.26854e-05
  3  43.7871
  4  6.1821
  5  2.61124
  6  8.84505
  7  8.81369
  8  17.8318
  9  5.83972
  10  8.28179e-06
  11  4.58815e-05
  12  3.42176e-06
  13  2.52552
  14  7.7081
  15  8.00887
  16  2.61809e-05
  17  10.1766
  18  1.16804e-05
  19  0.209206
  20  0.205813
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.992e+00  8.814e+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:  7.380e-01  2.058e-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.247e+00  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/251922/likelihoodResults_345859201_346118401_4FGL_J1051.6+2109_daily_bin411.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) = 5597.56755355
delta logL = 0.0925429962654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5597.56485815
delta logL = 0.0952383923432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0563       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5645       1.0000          .0000       10.000    
     3 'Normalizat'    1.2281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75004       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=   5597.565     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      248 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0585        142.25        .72056E-02    .77862E-03
   2  Index         3.5665        6.6354        .23509        .59795E-04
   3  Normalizat    1.2281        .39559E-01    .34235E-01    .16403E-05
   4  Prefactor     .74989        .42292E-01    .62696E-01    .18401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.05847
  Index      = 3.56648
  Normalizat = 1.22806
  Prefactor  = 0.749887
 **********
 **   18 **HESSE 
 **********

 FCN=   5597.565     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0585        7.4210        .20410E-03   -1.5421    
   2  Index         3.5665        2.2751        .13876E-01   -.29079    
   3  Normalizat    1.2281        .19963        .20987E-03   -.85740    
   4  Prefactor     .74989        .20529        .27733E-03   -1.0160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40284e-08
Minuit parameter uncertainties:
  1  7.42429
  2  2.37074
  3  0.199756
  4  0.205495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251922': 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) = 5597.56485485
delta logL = 0.095241696089

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  2.058e+00  7.424e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.566e+00  2.371e+00  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:  7.499e-01  2.055e-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.228e+00  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/251922/cmap_HighResolution_345859201_346118401_4FGL_J1051.6+2109_daily_bin411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.44e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-02 18:40:04.846967', job_id='251922', GAL2='0.75', fit_tolerance='1e-08', EG2='1.23', EG='1.25', time_epoch_completed='1630633204.85', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='9.52e-02', ts2='0.27', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='411' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:40:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 251922: <4FGL_J1051.6+2109_daily_bin411> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin411> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 18:26:41 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:28:19 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:28:19 2021
Terminated at Thu Sep  2 18:40:05 2021
Results reported at Thu Sep  2 18:40:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin411 162.913 21.1651 345859201 346118401 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 :                                   581.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            804 sec.

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

