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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin366
RA = 162.913, Dec = 21.1651
tmin = 334195201, tmax = 334454401
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='251854', job_status='RUN', time_executed='2021-09-02 18:29:18.833923', time_epoch_executed='1630632558.83' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='366'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251854

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251854/ft1_4FGL_J1051.6+2109_daily_bin366.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251854/ft2_4FGL_J1051.6+2109_daily_bin366.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251854/ft1_4FGL_J1051.6+2109_daily_bin366.fits outfile=/scratch/kocevski/251854/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin366.fits ra=162.913 dec=21.1651 rad=12.0 tmin=334195201.0 tmax=334454401.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.99
user 3.74
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251854/ft2_4FGL_J1051.6+2109_daily_bin366.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/251854/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin366.fits evtable="EVENTS" outfile="/scratch/kocevski/251854/ft1_filtered_4FGL_J1051.6+2109_daily_bin366.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.54
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251854/ft1_filtered_4FGL_J1051.6+2109_daily_bin366.fits" evtable="EVENTS" scfile=/scratch/kocevski/251854/ft2_4FGL_J1051.6+2109_daily_bin366.fits sctable="SC_DATA" outfile=/scratch/kocevski/251854/ltcube_334195201_334454401_4FGL_J1051.6+2109_daily_bin366.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/251854/ft2_4FGL_J1051.6+2109_daily_bin366.fits
.....................!
real 17.12
user 16.62
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251854/ft1_filtered_4FGL_J1051.6+2109_daily_bin366.fits evtable="EVENTS" scfile=/scratch/kocevski/251854/ft2_4FGL_J1051.6+2109_daily_bin366.fits sctable="SC_DATA" expcube=/scratch/kocevski/251854/ltcube_334195201_334454401_4FGL_J1051.6+2109_daily_bin366.fits outfile=/scratch/kocevski/251854/expmap_334195201_334454401_4FGL_J1051.6+2109_daily_bin366.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/251854/ltcube_334195201_334454401_4FGL_J1051.6+2109_daily_bin366.fits
.....................!
real 193.20
user 187.41
sys 5.29

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/251854/ft1_filtered_4FGL_J1051.6+2109_daily_bin366.fits scfile=/scratch/kocevski/251854/ft2_4FGL_J1051.6+2109_daily_bin366.fits outfile=/scratch/kocevski/251854/cmap_334195201_334454401_4FGL_J1051.6+2109_daily_bin366.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251854/ft1_filtered_4FGL_J1051.6+2109_daily_bin366.fits scfile=/scratch/kocevski/251854/ft2_4FGL_J1051.6+2109_daily_bin366.fits outfile=/scratch/kocevski/251854/cmap_HighResolution_334195201_334454401_4FGL_J1051.6+2109_daily_bin366.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.57
user 0.37
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.285       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.777       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .68426       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.519       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0034       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0811       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8012       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9202       1.0000         .10000E-03   10000.    
    15 'norm      '    .10584E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.2624       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .37555       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3697       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1868       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88370       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=   5318.734     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2078 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6800        .32193E-07** at limit **
   2  Prefactor     .10000E-03    23.982       -.70178E-06** at limit **
   3  Prefactor     15.265        45.699       -.77253E-05   -.10782E-03
   4  Prefactor     17.774        9.5326        .22154E-07    .48217E-04
   5  Prefactor     .10000E-03    1.1692       -.30719E-07** at limit **
   6  Prefactor     .65485        4.0774        .12183E-05   -.66966E-03
   7  Prefactor     11.510        11.364        .53820E-06    .49834E-04
   8  Prefactor     .10000E-03    8.6250       -.15079E-06** at limit **
   9  Prefactor     6.9978        12.680        .10385E-05    .67249E-04
  10  Prefactor     3.0760        11.979       -.23671E-08   -.15864E-04
  11  Prefactor     4.8149        15.261       -.63220E-05   -.27785E-03
  12  norm          .10000E-03    .65191        .61936E-07** at limit **
  13  Prefactor     .10000E-03    1.7094       -.68157E-07** at limit **
  14  Prefactor     1.9457        11.408        .16973E-06   -.19532E-03
  15  norm          .10000E-03    15.982        .12314E-05** at limit **
  16  norm          4.2623        8.1643        .40485E-05   -.28209E-03
  17  Prefactor     .26197        16.107       -.16154E-05    .16566E-03
  18  Prefactor     4.3971        87.480        .91040E-05    .46572E-04
  19  Normalizat    1.1873        .19464        .62336E-06   -.11968E-04
  20  Prefactor     .88341        .18772        .90967E-07    .77781E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2652
  Prefactor  = 17.7739
  Prefactor  = 0.0001
  Prefactor  = 0.654849
  Prefactor  = 11.51
  Prefactor  = 0.0001
  Prefactor  = 6.99778
  Prefactor  = 3.07595
  Prefactor  = 4.81487
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.94566
  norm       = 0.0001
  norm       = 4.26233
  Prefactor  = 0.261966
  Prefactor  = 4.39705
  Normalizat = 1.18728
  Prefactor  = 0.88341
 **********
 **   18 **HESSE 
 **********

 FCN=   5318.734     FROM HESSE     STATUS=OK           299 CALLS     2377 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.7145        .16971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.265        46.299        .10244E-03   -1.4926    
   4  Prefactor     17.774        9.5805        .94994E-04   -1.4865    
   5  Prefactor     .10000E-03    1.1853        .76896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .65485        16.172        .27141E-02   -1.5546    
   7  Prefactor     11.510        11.351        .11804E-03   -1.5029    
   8  Prefactor     .10000E-03    8.6269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.9978        12.623        .15159E-03   -1.5179    
  10  Prefactor     3.0760        12.001        .23107E-03   -1.5357    
  11  Prefactor     4.8149        15.608        .18361E-03   -1.5269    
  12  norm          .10000E-03    .67993        .11477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7282        .92868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9457        21.150        .29987E-03   -1.5429    
  15  norm          .10000E-03    16.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.2623        8.6135        .97578E-03   -1.5295    
  17  Prefactor     .26197        560.23        .45331E-02   -1.5606    
  18  Prefactor     4.3971        87.447        .19268E-03   -1.5289    
  19  Normalizat    1.1873        .23541        .22988E-03   -.86997    
  20  Prefactor     .88341        .22203        .26770E-03   -.96723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27842e-08
Minuit parameter uncertainties:
  1  4.62049e-06
  2  8.35011e-05
  3  46.408
  4  9.5813
  5  2.81188e-06
  6  6.50998
  7  11.3532
  8  9.28486e-06
  9  12.6282
  10  12.0106
  11  15.6207
  12  3.42284e-06
  13  5.41399e-06
  14  12.8351
  15  1.7326e-05
  16  8.616
  17  24.4568
  18  39.2834
  19  0.235618
  20  0.222253
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.151e+01  1.135e+01  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.834e-01  2.223e-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.187e+00  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 5.83e-08 +/- 5.75e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.31e-05

TS (Fixed Index): 1.89
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 1.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251854/likelihoodResults_334195201_334454401_4FGL_J1051.6+2109_daily_bin366.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) = 5318.64714427
delta logL = 0.0865716941353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5318.64362471
delta logL = 0.0900912505722

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4856       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1601       1.0000          .0000       10.000    
     3 'Normalizat'    1.1693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89688       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=   5318.644     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      262 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4952        176.61        .32530E-02    .12824E-03
   2  Index         3.1615        6.5768        .21764        .60689E-04
   3  Normalizat    1.1691        .66937E-01    .52320E-01    .25556E-05
   4  Prefactor     .89668        .65433E-01    .44965E-01    .91265E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.49521
  Index      = 3.16148
  Normalizat = 1.16909
  Prefactor  = 0.896685
 **********
 **   18 **HESSE 
 **********

 FCN=   5318.644     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4952        11.159        .13012E-03   -1.5092    
   2  Index         3.1615        1.0401        .79896E-02   -.37654    
   3  Normalizat    1.1691        .22206        .23133E-03   -.87563    
   4  Prefactor     .89668        .22250        .26598E-03   -.96257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81436e-12
Minuit parameter uncertainties:
  1  11.1616
  2  1.04898
  3  0.222235
  4  0.222726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251854': 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) = 5318.64361625
delta logL = 0.0900997191957

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  9.495e+00  1.116e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.161e+00  1.049e+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:  8.967e-01  2.227e-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.169e+00  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 162.913 21.165
Photon Index (Free Index): 3.16 +/- 1.05
Photon Flux (Free Index): 7.43e-08 +/- 6.60e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.12e-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/251854/cmap_HighResolution_334195201_334454401_4FGL_J1051.6+2109_daily_bin366.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', photon_flux='5.83e-08', energy_flux2='1.38e-05', photon_flux_error='5.75e-08', dlogl='9.01e-02', energy_flux='1.33e-05', photon_flux2='7.43e-08', job_status='DONE', time_completed='2021-09-02 18:39:57.040852', photon_index_error2='1.05', photon_index2='3.16', ts='1.89', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='1.12e-05', EG='1.19', time_epoch_completed='1630633197.04', return_code='0', job_id='251854', GAL2='0.90', EG2='1.17', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='6.60e-08', ts2='2.13', photon_index='2.77' WHERE bin_id='366' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:39:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 251854: <4FGL_J1051.6+2109_daily_bin366> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin366 162.913 21.1651 334195201 334454401 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 :                                   592.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            801 sec.

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

