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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin272
RA = 162.913, Dec = 21.1651
tmin = 309830401, tmax = 310089601
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='251717', job_status='RUN', time_executed='2021-09-02 18:31:43.522700', time_epoch_executed='1630632703.52' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251717

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251717/ft1_4FGL_J1051.6+2109_daily_bin272.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251717/ft2_4FGL_J1051.6+2109_daily_bin272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251717/ft1_4FGL_J1051.6+2109_daily_bin272.fits outfile=/scratch/kocevski/251717/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin272.fits ra=162.913 dec=21.1651 rad=12.0 tmin=309830401.0 tmax=310089601.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.57
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251717/ft1_filtered_4FGL_J1051.6+2109_daily_bin272.fits" evtable="EVENTS" scfile=/scratch/kocevski/251717/ft2_4FGL_J1051.6+2109_daily_bin272.fits sctable="SC_DATA" outfile=/scratch/kocevski/251717/ltcube_309830401_310089601_4FGL_J1051.6+2109_daily_bin272.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/251717/ft2_4FGL_J1051.6+2109_daily_bin272.fits
.....................!
real 16.45
user 16.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251717/ft1_filtered_4FGL_J1051.6+2109_daily_bin272.fits evtable="EVENTS" scfile=/scratch/kocevski/251717/ft2_4FGL_J1051.6+2109_daily_bin272.fits sctable="SC_DATA" expcube=/scratch/kocevski/251717/ltcube_309830401_310089601_4FGL_J1051.6+2109_daily_bin272.fits outfile=/scratch/kocevski/251717/expmap_309830401_310089601_4FGL_J1051.6+2109_daily_bin272.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/251717/ltcube_309830401_310089601_4FGL_J1051.6+2109_daily_bin272.fits
.....................!
real 192.57
user 186.57
sys 4.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/251717/ft1_filtered_4FGL_J1051.6+2109_daily_bin272.fits scfile=/scratch/kocevski/251717/ft2_4FGL_J1051.6+2109_daily_bin272.fits outfile=/scratch/kocevski/251717/cmap_309830401_310089601_4FGL_J1051.6+2109_daily_bin272.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251717/ft1_filtered_4FGL_J1051.6+2109_daily_bin272.fits scfile=/scratch/kocevski/251717/ft2_4FGL_J1051.6+2109_daily_bin272.fits outfile=/scratch/kocevski/251717/cmap_HighResolution_309830401_310089601_4FGL_J1051.6+2109_daily_bin272.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2767       1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.669       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5179       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11975E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .40255E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8434       1.0000         .10000E-03   10000.    
    12 'norm      '    .82404       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2454       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7601       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.780       1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.869       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1639       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81665       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=   5123.522     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2078 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2767        6.5644        .32896E-02   -.20658E-03
   2  Prefactor     47.669        34.594        .14519E-02    .23940E-03
   3  Prefactor     .10000E-03    18.149        .90712E-02** at limit **
   4  Prefactor     1.5193        6.6568        .86723E-02   -.99663E-03
   5  Prefactor     .10000E-03    1.6760        .90712E-02** at limit **
   6  Prefactor     .10006E-03    3.3310        .71717E-01** at limit **
   7  Prefactor     .10059E-03    5.3715        .85296E-01** at limit **
   8  Prefactor     .10008E-03    55.729        .90712E-02** at limit **
   9  Prefactor     .10001E-03    6.0701        .90712E-02** at limit **
  10  Prefactor     .10000E-03    4.4633        .90712E-02** at limit **
  11  Prefactor     6.8509        16.321        .38343E-02    .92244E-04
  12  norm          .82388        .97431        .12529E-01    .19783E-03
  13  Prefactor     1.2449        2.1723        .10032E-01    .70730E-03
  14  Prefactor     .10001E-03    5.8237        .90712E-02** at limit **
  15  norm          .10000E-03    9.4873        .90712E-02** at limit **
  16  norm          2.7603        8.7239        .61250E-02    .72499E-03
  17  Prefactor     10.781        9.5780        .30507E-02    .41262E-03
  18  Prefactor     40.870        48.292        .15676E-02   -.60497E-03
  19  Normalizat    1.1640        .18469        .35845E-01   -.48685E-04
  20  Prefactor     .81649        .18914        .43933E-01   -.17721E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.27674
  Prefactor  = 47.6692
  Prefactor  = 0.000100001
  Prefactor  = 1.51926
  Prefactor  = 0.0001
  Prefactor  = 0.000100063
  Prefactor  = 0.000100587
  Prefactor  = 0.000100084
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 6.85087
  norm       = 0.823877
  Prefactor  = 1.2449
  Prefactor  = 0.000100007
  norm       = 0.0001
  norm       = 2.76034
  Prefactor  = 10.781
  Prefactor  = 40.8699
  Normalizat = 1.16399
  Prefactor  = 0.816491
 **********
 **   18 **HESSE 
 **********

 FCN=   5123.522     FROM HESSE     STATUS=OK           295 CALLS     2373 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2767        6.5625        .13158E-03   -1.5099    
   2  Prefactor     47.669        34.592        .58077E-04   -1.4326    
   3  Prefactor     .10000E-03    18.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5193        6.4544        .34152E-03   -1.5461    
   5  Prefactor     .10000E-03    1.7405        .18010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10006E-03    41.605        .25027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10059E-03    30.012        .29466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10008E-03    56.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    6.0945        .17207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4706        .14761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.8509        15.541        .15337E-03   -1.5184    
  12  norm          .82388        .93744        .74136E-03   -1.5526    
  13  Prefactor     1.2449        2.1369        .13329E-03   -1.5485    
  14  Prefactor     .10001E-03    6.0488        .33720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.6089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7603        8.7148        .24500E-03   -1.5376    
  17  Prefactor     10.781        9.5755        .12203E-03   -1.5051    
  18  Prefactor     40.870        48.325        .62703E-04   -1.4429    
  19  Normalizat    1.1640        .20975        .21057E-03   -.87723    
  20  Prefactor     .81649        .21718        .26616E-03   -.99123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65655e-08
Minuit parameter uncertainties:
  1  6.563
  2  34.6063
  3  0.000311531
  4  6.26381
  5  8.00456e-07
  6  0.00324699
  7  0.00839841
  8  0.00435881
  9  0.000423249
  10  3.81002e-06
  11  15.5502
  12  0.937459
  13  2.13704
  14  0.000403993
  15  2.21564e-05
  16  8.71879
  17  9.57683
  18  48.3716
  19  0.209902
  20  0.217404
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.006e-04  8.398e-03  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.165e-01  2.174e-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.164e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 9.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251717/likelihoodResults_309830401_310089601_4FGL_J1051.6+2109_daily_bin272.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): 102
logL (Free Index) = 5123.52256382
delta logL = -0.000158184041538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5123.52240563
delta logL = 2.85945134237e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7729       1.0000          .0000       10.000    
     3 'Normalizat'    1.1640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81647       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=   5123.522     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      226 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .74245        .64030E-01** at limit **
   2  Index         2.7743        6.1962        .50000       -.40709E-06
   3  Normalizat    1.1640        .14633E-02    .35841E-01    .38638E-04
   4  Prefactor     .81649        .15861E-02    .43931E-01    .33676E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.77426
  Normalizat = 1.16399
  Prefactor  = 0.816491
 **********
 **   18 **HESSE 
 **********

 FCN=   5123.522     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      261 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    300.10        .35392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7743        5.5158        .50000       -.46134    
   3  Normalizat    1.1640        .13838E-01    .21057E-03   -.87723    
   4  Prefactor     .81649        .14993E-01    .26616E-03   -.99123    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.84449e-09
Minuit parameter uncertainties:
  1  0.00138119
  2  589.778
  3  0.0138381
  4  0.0149929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251717': 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): 102
logL (Free Index) = 5123.52240562
delta logL = 9.99625626719e-09

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  1.381e-03  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.774e+00  5.898e+02  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.165e-01  1.499e-02  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.164e+00  1.384e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/251717/cmap_HighResolution_309830401_310089601_4FGL_J1051.6+2109_daily_bin272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-03', job_status='DONE', photon_flux_upper_limit='9.62e-08', time_completed='2021-09-02 18:41:28.972786', job_id='251717', GAL2='0.82', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630633288.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.00e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='272' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:41:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 251717: <4FGL_J1051.6+2109_daily_bin272> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin272 162.913 21.1651 309830401 310089601 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.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            902 sec.

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

