/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 166 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1379
RA = 162.913, Dec = 21.1651
tmin = 596764801, tmax = 597024001
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='258070', job_status='RUN', time_executed='2021-09-02 18:50:12.710919', time_epoch_executed='1630633812.71' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1379'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258070

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258070/ft1_4FGL_J1051.6+2109_daily_bin1379.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258070/ft2_4FGL_J1051.6+2109_daily_bin1379.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258070/ft1_4FGL_J1051.6+2109_daily_bin1379.fits outfile=/scratch/kocevski/258070/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1379.fits ra=162.913 dec=21.1651 rad=12.0 tmin=596764801.0 tmax=597024001.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.59
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258070/ft1_filtered_4FGL_J1051.6+2109_daily_bin1379.fits" evtable="EVENTS" scfile=/scratch/kocevski/258070/ft2_4FGL_J1051.6+2109_daily_bin1379.fits sctable="SC_DATA" outfile=/scratch/kocevski/258070/ltcube_596764801_597024001_4FGL_J1051.6+2109_daily_bin1379.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/258070/ft2_4FGL_J1051.6+2109_daily_bin1379.fits
.....................!
real 16.98
user 16.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258070/ft1_filtered_4FGL_J1051.6+2109_daily_bin1379.fits evtable="EVENTS" scfile=/scratch/kocevski/258070/ft2_4FGL_J1051.6+2109_daily_bin1379.fits sctable="SC_DATA" expcube=/scratch/kocevski/258070/ltcube_596764801_597024001_4FGL_J1051.6+2109_daily_bin1379.fits outfile=/scratch/kocevski/258070/expmap_596764801_597024001_4FGL_J1051.6+2109_daily_bin1379.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/258070/ltcube_596764801_597024001_4FGL_J1051.6+2109_daily_bin1379.fits
.....................!
real 193.79
user 188.40
sys 4.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/258070/ft1_filtered_4FGL_J1051.6+2109_daily_bin1379.fits scfile=/scratch/kocevski/258070/ft2_4FGL_J1051.6+2109_daily_bin1379.fits outfile=/scratch/kocevski/258070/cmap_596764801_597024001_4FGL_J1051.6+2109_daily_bin1379.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.57
user 0.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3551       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.248       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .70952E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .90011       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.397       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .44494E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.583       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5903       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .65883       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9174       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .99525E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.6068       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .78297       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2965       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=   6568.163     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     1823 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3555        5.4051       -.12106E-05   -.14274E-03
   2  Prefactor     14.228        36.410        .15880E-05    .42121E-04
   3  Prefactor     .10000E-03    32.836        .86395E-05** at limit **
   4  Prefactor     .10013E-03    22.931        .10088E-04** at limit **
   5  Prefactor     .89815        1.8936       -.21898E-05   -.47239E-03
   6  Prefactor     .10000E-03    1.8113        .72427E-07** at limit **
   7  Prefactor     10.394        9.1479       -.25596E-07   -.10522E-03
   8  Prefactor     .10034E-03    37.581       -.92877E-05** at limit **
   9  Prefactor     14.585        12.726        .47441E-06   -.38090E-04
  10  Prefactor     2.5908        5.0790       -.69946E-06    .18720E-03
  11  Prefactor     .10000E-03    13.129        .13686E-05** at limit **
  12  norm          .65861        1.1029       -.90833E-06    .35886E-03
  13  Prefactor     1.9171        2.0285       -.12891E-06    .16377E-03
  14  Prefactor     .10000E-03    1.7340       -.21253E-08** at limit **
  15  norm          .10011E-03    14.439        .57174E-05** at limit **
  16  norm          6.6016        12.797       -.10158E-05    .41808E-04
  17  Prefactor     .10000E-03    3.9068       -.25176E-07** at limit **
  18  Prefactor     .10000E-03    12.410       -.81443E-06** at limit **
  19  Normalizat    .78326        .16703        .18568E-05    .84461E-04
  20  Prefactor     1.2962        .17163        .18376E-06    .23071E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.35548
  Prefactor  = 14.2277
  Prefactor  = 0.000100004
  Prefactor  = 0.000100129
  Prefactor  = 0.898145
  Prefactor  = 0.0001
  Prefactor  = 10.3938
  Prefactor  = 0.000100335
  Prefactor  = 14.5853
  Prefactor  = 2.59076
  Prefactor  = 0.0001
  norm       = 0.658605
  Prefactor  = 1.91715
  Prefactor  = 0.0001
  norm       = 0.000100108
  norm       = 6.60163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.783258
  Prefactor  = 1.29619
 **********
 **   18 **HESSE 
 **********

 FCN=   6568.163     FROM HESSE     STATUS=OK           301 CALLS     2124 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3555        5.4029        .19301E-03   -1.5291    
   2  Prefactor     14.228        36.491        .10611E-03   -1.4953    
   3  Prefactor     .10000E-03    33.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10013E-03    40.762        .35233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .89815        1.8835        .15554E-03   -1.5518    
   6  Prefactor     .10000E-03    1.8257        .10650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.394        9.0895        .12426E-03   -1.5063    
   8  Prefactor     .10034E-03    209.28        .73897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.585        12.700        .10488E-03   -1.4944    
  10  Prefactor     2.5908        5.0543        .24823E-03   -1.5386    
  11  Prefactor     .10000E-03    13.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .65861        1.0837        .10486E-03   -1.5546    
  13  Prefactor     1.9171        2.0137        .11396E-03   -1.5431    
  14  Prefactor     .10000E-03    1.7371        .10422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10011E-03    24.887        .35815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6016        12.800        .15612E-03   -1.5194    
  17  Prefactor     .10000E-03    3.9156        .15643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .78326        .19081        .26366E-03   -1.0069    
  20  Prefactor     1.2962        .20045        .23081E-03   -.83420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96423e-09
Minuit parameter uncertainties:
  1  5.40355
  2  36.548
  3  0.00077181
  4  0.00459812
  5  1.88361
  6  6.16991e-07
  7  9.09068
  8  0.0168166
  9  12.7022
  10  5.05508
  11  2.94978e-05
  12  1.08375
  13  2.01382
  14  1.9267e-06
  15  0.0032863
  16  12.8052
  17  6.74305e-06
  18  4.9773e-05
  19  0.190973
  20  0.200571
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.039e+01  9.091e+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.296e+00  2.006e-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:  7.833e-01  1.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.38
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 5.27e-08 +/- 4.60e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/258070/likelihoodResults_596764801_597024001_4FGL_J1051.6+2109_daily_bin1379.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) = 6567.93590094
delta logL = 0.22675716553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6567.92966611
delta logL = 0.232991998577

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4458       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3197       1.0000          .0000       10.000    
     3 'Normalizat'    .76182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3121       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.

 FCN=   6567.930     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      290 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4453        8.6979        .14651E-03    .82100E-04
   2  Index         3.3199        .93822        .72269E-02    .24099E-04
   3  Normalizat    .76220        .18611        .26686E-03   -.28019E-03
   4  Prefactor     1.3117        .20035        .22964E-03   -.27631E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.44528
  Index      = 3.3199
  Normalizat = 0.762196
  Prefactor  = 1.31166
 **********
 **   18 **HESSE 
 **********

 FCN=   6567.930     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4453        7.9147        .58602E-05   -1.5162    
   2  Index         3.3199        .85376        .28907E-03   -.34269    
   3  Normalizat    .76220        .18628        .10675E-04   -1.0149    
   4  Prefactor     1.3117        .20044        .45928E-04   -.82961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0888e-10
Minuit parameter uncertainties:
  1  7.91577
  2  0.858507
  3  0.186433
  4  0.200562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258070': 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) = 6567.92966353
delta logL = 0.232994573565

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  7.445e+00  7.916e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.320e+00  8.585e-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.312e+00  2.006e-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:  7.622e-01  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.93
Ra Dec: 162.913 21.165
Photon Index (Free Index): 3.32 +/- 0.86
Photon Flux (Free Index): 7.02e-08 +/- 5.23e-08
Energy Flux (Free Index): 1.23e-05 +/- 8.76e-06

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/258070/cmap_HighResolution_596764801_597024001_4FGL_J1051.6+2109_daily_bin1379.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='5.27e-08', energy_flux2='1.23e-05', photon_flux_error='4.60e-08', dlogl='2.33e-01', energy_flux='1.20e-05', photon_flux2='7.02e-08', job_status='DONE', time_completed='2021-09-02 19:02:42.009581', photon_index_error2='0.86', photon_index2='3.32', ts='2.38', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='8.76e-06', EG='0.78', time_epoch_completed='1630634562.01', return_code='0', job_id='258070', GAL2='1.31', EG2='0.76', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='5.23e-08', ts2='2.93', photon_index='2.77' WHERE bin_id='1379' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:02:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 258070: <4FGL_J1051.6+2109_daily_bin1379> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1379> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 18:46:17 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:47:17 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:47:17 2021
Terminated at Thu Sep  2 19:02:43 2021
Results reported at Thu Sep  2 19:02:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1379 162.913 21.1651 596764801 597024001 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 :                                   621.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            986 sec.

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

