/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 108 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 = 7396
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1051.6+2109_daily_bin14
RA = 162.913, Dec = 21.1651
tmin = 242956801, tmax = 243216001
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='250226', job_status='RUN', time_executed='2021-09-02 18:26:47.614797', time_epoch_executed='1630632407.61' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='14'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250226/ft1_4FGL_J1051.6+2109_daily_bin14.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250226/ft2_4FGL_J1051.6+2109_daily_bin14.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250226/ft1_4FGL_J1051.6+2109_daily_bin14.fits outfile=/scratch/kocevski/250226/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin14.fits ra=162.913 dec=21.1651 rad=12.0 tmin=242956801.0 tmax=243216001.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 1.61
user 1.27
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250226/ft1_filtered_4FGL_J1051.6+2109_daily_bin14.fits" evtable="EVENTS" scfile=/scratch/kocevski/250226/ft2_4FGL_J1051.6+2109_daily_bin14.fits sctable="SC_DATA" outfile=/scratch/kocevski/250226/ltcube_242956801_243216001_4FGL_J1051.6+2109_daily_bin14.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/250226/ft2_4FGL_J1051.6+2109_daily_bin14.fits
.....................!
real 16.10
user 15.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250226/ft1_filtered_4FGL_J1051.6+2109_daily_bin14.fits evtable="EVENTS" scfile=/scratch/kocevski/250226/ft2_4FGL_J1051.6+2109_daily_bin14.fits sctable="SC_DATA" expcube=/scratch/kocevski/250226/ltcube_242956801_243216001_4FGL_J1051.6+2109_daily_bin14.fits outfile=/scratch/kocevski/250226/expmap_242956801_243216001_4FGL_J1051.6+2109_daily_bin14.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/250226/ltcube_242956801_243216001_4FGL_J1051.6+2109_daily_bin14.fits
.....................!
real 191.32
user 185.97
sys 4.14

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/250226/ft1_filtered_4FGL_J1051.6+2109_daily_bin14.fits scfile=/scratch/kocevski/250226/ft2_4FGL_J1051.6+2109_daily_bin14.fits outfile=/scratch/kocevski/250226/cmap_242956801_243216001_4FGL_J1051.6+2109_daily_bin14.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250226/ft1_filtered_4FGL_J1051.6+2109_daily_bin14.fits scfile=/scratch/kocevski/250226/ft2_4FGL_J1051.6+2109_daily_bin14.fits outfile=/scratch/kocevski/250226/cmap_HighResolution_242956801_243216001_4FGL_J1051.6+2109_daily_bin14.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.938       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13312E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .35939E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3911       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .45048E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.046       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9284       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10667E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4137       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5847       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.116       1.0000         .10000E-03   10000.    
    15 'norm      '    8.4192       1.0000         .10000E-03   10000.    
    16 'norm      '    .16750E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29436E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14102E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1794       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0345       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=   9053.059     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     1798 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.989        8.5198       -.31515E-05   -.17955E-03
   2  Prefactor     .10000E-03    23.598       -.68251E-05** at limit **
   3  Prefactor     .10000E-03    33.011       -.55865E-05** at limit **
   4  Prefactor     .10009E-03    4.2700        .33688E-05** at limit **
   5  Prefactor     1.3915        2.1163       -.86479E-06   -.24841E-02
   6  Prefactor     .10001E-03    2.6120        .70462E-07** at limit **
   7  Prefactor     25.047        9.7584       -.60563E-07   -.75689E-03
   8  Prefactor     .10000E-03    11.689       -.28825E-05** at limit **
   9  Prefactor     .10000E-03    7.7061       -.64781E-06** at limit **
  10  Prefactor     9.9249        11.175        .56398E-06   -.57172E-04
  11  Prefactor     .10000E-03    3.5119        .47466E-07** at limit **
  12  norm          2.4138        1.4232       -.62402E-07   -.78560E-03
  13  Prefactor     1.5852        1.9560       -.31543E-06   -.75829E-03
  14  Prefactor     10.122        6.5932       -.58231E-06   -.74832E-04
  15  norm          8.4529        8.3714       -.33182E-05   -.13416E-03
  16  norm          .10018E-03    4.5068       -.78755E-06** at limit **
  17  Prefactor     .10000E-03    7.2244        .27310E-07** at limit **
  18  Prefactor     .10000E-03    38.441        .18197E-04** at limit **
  19  Normalizat    1.1792        .15364        .49171E-06   -.49428E-03
  20  Prefactor     1.0344        .15543        .90740E-06   -.37202E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.9891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100092
  Prefactor  = 1.39149
  Prefactor  = 0.000100006
  Prefactor  = 25.0475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.92493
  Prefactor  = 0.0001
  norm       = 2.41377
  Prefactor  = 1.58524
  Prefactor  = 10.1224
  norm       = 8.4529
  norm       = 0.000100177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.17923
  Prefactor  = 1.03444
 **********
 **   18 **HESSE 
 **********

 FCN=   9053.059     FROM HESSE     STATUS=OK           295 CALLS     2093 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.989        8.4991        .83635E-04   -1.4749    
   2  Prefactor     .10000E-03    23.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10009E-03    11.617        .35610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3915        2.1082        .16048E-03   -1.5472    
   6  Prefactor     .10001E-03    16.611        .29030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.047        9.6863        .80043E-04   -1.4707    
   8  Prefactor     .10000E-03    11.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.8866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.9249        11.070        .12717E-03   -1.5078    
  11  Prefactor     .10000E-03    3.5149        .17410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4138        1.4097        .81895E-04   -1.5397    
  13  Prefactor     1.5852        1.9211        .13652E-03   -1.5456    
  14  Prefactor     10.122        6.5947        .12598E-03   -1.5072    
  15  norm          8.4529        8.3878        .13816E-03   -1.5126    
  16  norm          .10018E-03    66.337        .38720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.3835        .21398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    38.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1792        .17875        .24635E-03   -.87247    
  20  Prefactor     1.0344        .18382        .27625E-03   -.91590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24053e-08
Minuit parameter uncertainties:
  1  8.49958
  2  6.21217e-06
  3  3.92344e-06
  4  0.00206862
  5  2.1083
  6  0.000649074
  7  9.68687
  8  3.62325e-06
  9  4.65843e-07
  10  11.072
  11  1.17188e-06
  12  1.40967
  13  1.92122
  14  6.59517
  15  8.38901
  16  0.00686985
  17  2.10752e-06
  18  4.00874e-05
  19  0.178846
  20  0.183932
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  2.505e+01  9.687e+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:  1.034e+00  1.839e-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.179e+00  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.21
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 1.27e-07 +/- 4.90e-08
Energy Flux (Fixed Index): 2.90e-05 +/- 1.12e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9052.72761902
delta logL = 0.331020583413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9052.72689909
delta logL = 0.331740509302

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.838       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4220       1.0000          .0000       10.000    
     3 'Normalizat'    1.2103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0081       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=   9052.727     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      274 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.880        196.84        .18337E-02    .52723E-03
   2  Index         2.4236        3.5987        .17853        .21966E-04
   3  Normalizat    1.2101        .12175        .55108E-01    .22461E-04
   4  Prefactor     1.0082        .14046        .63112E-01    .12780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.8796
  Index      = 2.42364
  Normalizat = 1.21006
  Prefactor  = 1.00823
 **********
 **   18 **HESSE 
 **********

 FCN=   9052.727     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.880        11.826        .36674E-03   -1.4614    
   2  Index         2.4236        .39091        .66565E-02   -.54132    
   3  Normalizat    1.2101        .17844        .24368E-03   -.86292    
   4  Prefactor     1.0082        .18451        .27912E-03   -.92456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00978e-10
Minuit parameter uncertainties:
  1  11.8266
  2  0.391455
  3  0.178534
  4  0.18463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250226': 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) = 9052.72688045
delta logL = 0.331759151493

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  2.988e+01  1.183e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.424e+00  3.915e-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:  1.008e+00  1.846e-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.210e+00  1.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.71
Ra Dec: 162.913 21.165
Photon Index (Free Index): 2.42 +/- 0.39
Photon Flux (Free Index): 1.07e-07 +/- 5.02e-08
Energy Flux (Free Index): 3.40e-05 +/- 1.52e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/250226/cmap_HighResolution_242956801_243216001_4FGL_J1051.6+2109_daily_bin14.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.27e-07', energy_flux2='3.40e-05', photon_flux_error='4.90e-08', dlogl='3.32e-01', energy_flux='2.90e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-02 18:37:40.629803', photon_index_error2='0.39', photon_index2='2.42', ts='10.21', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='1.18', time_epoch_completed='1630633060.63', return_code='0', job_id='250226', GAL2='1.01', EG2='1.21', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='5.02e-08', ts2='10.71', photon_index='2.77' WHERE bin_id='14' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:37:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 250226: <4FGL_J1051.6+2109_daily_bin14> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin14> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 18:21:14 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:24:46 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:24:46 2021
Terminated at Thu Sep  2 18:37:41 2021
Results reported at Thu Sep  2 18:37:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin14 162.913 21.1651 242956801 243216001 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 :                                   647.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            987 sec.

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

