/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 1 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 = 7390
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1095
RA = 162.913, Dec = 21.1651
tmin = 523152001, tmax = 523411201
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='256636', job_status='RUN', time_executed='2021-09-02 18:44:03.534412', time_epoch_executed='1630633443.53' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256636

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256636/ft1_4FGL_J1051.6+2109_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256636/ft2_4FGL_J1051.6+2109_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256636/ft1_4FGL_J1051.6+2109_daily_bin1095.fits outfile=/scratch/kocevski/256636/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1095.fits ra=162.913 dec=21.1651 rad=12.0 tmin=523152001.0 tmax=523411201.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 4.24
user 3.99
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256636/ft1_filtered_4FGL_J1051.6+2109_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/256636/ft2_4FGL_J1051.6+2109_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/256636/ltcube_523152001_523411201_4FGL_J1051.6+2109_daily_bin1095.fits outfile=/scratch/kocevski/256636/expmap_523152001_523411201_4FGL_J1051.6+2109_daily_bin1095.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/256636/ltcube_523152001_523411201_4FGL_J1051.6+2109_daily_bin1095.fits
.....................!
real 192.30
user 186.78
sys 4.66

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/256636/ft1_filtered_4FGL_J1051.6+2109_daily_bin1095.fits scfile=/scratch/kocevski/256636/ft2_4FGL_J1051.6+2109_daily_bin1095.fits outfile=/scratch/kocevski/256636/cmap_523152001_523411201_4FGL_J1051.6+2109_daily_bin1095.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256636/ft1_filtered_4FGL_J1051.6+2109_daily_bin1095.fits scfile=/scratch/kocevski/256636/ft2_4FGL_J1051.6+2109_daily_bin1095.fits outfile=/scratch/kocevski/256636/cmap_HighResolution_523152001_523411201_4FGL_J1051.6+2109_daily_bin1095.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.55
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14442E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.341       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.869       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4346       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.891       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.069       1.0000         .10000E-03   10000.    
    16 'norm      '    25.168       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99061       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0260       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=   5647.007     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     1770 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9035        .79165E-07** at limit **
   2  Prefactor     .10000E-03    14.971        .61794E-07** at limit **
   3  Prefactor     .10001E-03    838.74       -.11111E-04** at limit **
   4  Prefactor     12.341        8.7636       -.92263E-07   -.19726E-05
   5  Prefactor     .10000E-03    1.0970       -.10331E-06** at limit **
   6  Prefactor     20.872        8.8210        .95810E-07   -.18087E-05
   7  Prefactor     1.4232        32.709        .62230E-05    .15854E-03
   8  Prefactor     .10000E-03    178.64       -.33400E-05** at limit **
   9  Prefactor     12.909        17.365       -.28210E-05    .57492E-04
  10  Prefactor     .10000E-03    4.5472        .50123E-07** at limit **
  11  Prefactor     .10000E-03    70.328       -.44082E-05** at limit **
  12  norm          .10000E-03    .39855        .27527E-07** at limit **
  13  Prefactor     .10000E-03    2.0243        .15014E-06** at limit **
  14  Prefactor     .10000E-03    3.1620        .47364E-07** at limit **
  15  norm          11.064        10.402        .48582E-06   -.10724E-03
  16  norm          25.167        16.822        .30259E-06    .20278E-04
  17  Prefactor     .10000E-03    8.7997        .19447E-06** at limit **
  18  Prefactor     .10000E-03    100.42        .18147E-05** at limit **
  19  Normalizat    .99059        .19006       -.96322E-06    .23872E-03
  20  Prefactor     1.0260        .18675       -.11254E-05    .28311E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 12.3414
  Prefactor  = 0.0001
  Prefactor  = 20.872
  Prefactor  = 1.4232
  Prefactor  = 0.000100001
  Prefactor  = 12.9089
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.0637
  norm       = 25.1674
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.990589
  Prefactor  = 1.02603
 **********
 **   18 **HESSE 
 **********

 FCN=   5647.007     FROM HESSE     STATUS=OK           283 CALLS     2053 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9208        .14501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    850.14        .41001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.341        8.7582        .11403E-03   -1.5005    
   5  Prefactor     .10000E-03    1.1080        .76652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.872        8.8275        .87678E-04   -1.4794    
   7  Prefactor     1.4232        32.633        .36048E-03   -1.5469    
   8  Prefactor     .10000E-03    182.37        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.909        17.034        .11156E-03   -1.4989    
  10  Prefactor     .10000E-03    4.5633        .15650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    71.044        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .40947        .92602E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1066        .20883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1719        .13050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.064        10.384        .12042E-03   -1.5043    
  16  norm          25.167        16.950        .79849E-04   -1.4704    
  17  Prefactor     .10000E-03    8.8740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    102.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .99059        .22151        .24947E-03   -.93346    
  20  Prefactor     1.0260        .21466        .25327E-03   -.91867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40994e-10
Minuit parameter uncertainties:
  1  5.68789e-06
  2  8.32176e-06
  3  0.00590632
  4  8.75912
  5  7.92176e-06
  6  8.82804
  7  13.6378
  8  0.000689707
  9  17.0405
  10  5.59079e-06
  11  0.000911968
  12  7.35093e-07
  13  5.93802e-06
  14  3.98449e-06
  15  10.3855
  16  16.9531
  17  9.73431e-06
  18  0.000599049
  19  0.221718
  20  0.214835
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.423e+00  1.364e+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:  1.026e+00  2.148e-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:  9.906e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/256636/likelihoodResults_523152001_523411201_4FGL_J1051.6+2109_daily_bin1095.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) = 5646.97917027
delta logL = 0.0278026013975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5646.97816863
delta logL = 0.0288042340953

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4923       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5035       1.0000          .0000       10.000    
     3 'Normalizat'    .97971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0329       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=   5646.978     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      286 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5230        12.057        .30782E-03    .10075E-03
   2  Index         3.4828        3.2042        .98432E-02    .33134E-04
   3  Normalizat    .97941        .21391        .25070E-03   -.76050E-04
   4  Prefactor     1.0330        .21493        .25251E-03   -.62761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.523
  Index      = 3.48281
  Normalizat = 0.979415
  Prefactor  = 1.03298
 **********
 **   18 **HESSE 
 **********

 FCN=   5646.978     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5230        8.9423        .12313E-04   -1.5461    
   2  Index         3.4828        2.8252        .39373E-03   -.30830    
   3  Normalizat    .97941        .21429        .10028E-04   -.93723    
   4  Prefactor     1.0330        .21521        .10101E-04   -.91638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93816e-10
Minuit parameter uncertainties:
  1  7.38225
  2  3.02419
  3  0.214477
  4  0.215385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256636': 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) = 5646.97814189
delta logL = 0.0288309727248

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.523e+00  7.382e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.483e+00  3.024e+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:  1.033e+00  2.154e-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:  9.794e-01  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/256636/cmap_HighResolution_523152001_523411201_4FGL_J1051.6+2109_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.70e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-02 18:53:43.786569', job_id='256636', GAL2='1.03', fit_tolerance='1e-08', EG2='0.98', EG='0.99', time_epoch_completed='1630634023.79', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.88e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1095' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:53:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 256636: <4FGL_J1051.6+2109_daily_bin1095> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1095> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 18:41:46 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:43:54 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:43:54 2021
Terminated at Thu Sep  2 18:53:44 2021
Results reported at Thu Sep  2 18:53:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1095 162.913 21.1651 523152001 523411201 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 :                                   574.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   590 sec.
    Turnaround time :                            718 sec.

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

