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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1120
RA = 162.913, Dec = 21.1651
tmin = 529632001, tmax = 529891201
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='256674', job_status='RUN', time_executed='2021-09-02 18:45:43.861129', time_epoch_executed='1630633543.86' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1120'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256674

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256674/ft1_4FGL_J1051.6+2109_daily_bin1120.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256674/ft2_4FGL_J1051.6+2109_daily_bin1120.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256674/ft1_4FGL_J1051.6+2109_daily_bin1120.fits outfile=/scratch/kocevski/256674/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1120.fits ra=162.913 dec=21.1651 rad=12.0 tmin=529632001.0 tmax=529891201.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.84
user 3.40
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256674/ft1_filtered_4FGL_J1051.6+2109_daily_bin1120.fits" evtable="EVENTS" scfile=/scratch/kocevski/256674/ft2_4FGL_J1051.6+2109_daily_bin1120.fits sctable="SC_DATA" outfile=/scratch/kocevski/256674/ltcube_529632001_529891201_4FGL_J1051.6+2109_daily_bin1120.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/256674/ft2_4FGL_J1051.6+2109_daily_bin1120.fits
.....................!
real 15.29
user 14.43
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256674/ft1_filtered_4FGL_J1051.6+2109_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/256674/ft2_4FGL_J1051.6+2109_daily_bin1120.fits sctable="SC_DATA" expcube=/scratch/kocevski/256674/ltcube_529632001_529891201_4FGL_J1051.6+2109_daily_bin1120.fits outfile=/scratch/kocevski/256674/expmap_529632001_529891201_4FGL_J1051.6+2109_daily_bin1120.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/256674/ltcube_529632001_529891201_4FGL_J1051.6+2109_daily_bin1120.fits
.....................!
real 195.73
user 186.03
sys 6.20

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/256674/ft1_filtered_4FGL_J1051.6+2109_daily_bin1120.fits scfile=/scratch/kocevski/256674/ft2_4FGL_J1051.6+2109_daily_bin1120.fits outfile=/scratch/kocevski/256674/cmap_529632001_529891201_4FGL_J1051.6+2109_daily_bin1120.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256674/ft1_filtered_4FGL_J1051.6+2109_daily_bin1120.fits scfile=/scratch/kocevski/256674/ft2_4FGL_J1051.6+2109_daily_bin1120.fits outfile=/scratch/kocevski/256674/cmap_HighResolution_529632001_529891201_4FGL_J1051.6+2109_daily_bin1120.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3606       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2444       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.399       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.641       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.569       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .48663E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6855       1.0000         .10000E-03   10000.    
    15 'norm      '    11.599       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.823       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .78228       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3893       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=   5502.411     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2136 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3607        4.3431        .32160E-06    .48035E-04
   2  Prefactor     .10000E-03    13.554        .10171E-05** at limit **
   3  Prefactor     .10000E-03    12.764       -.67422E-06** at limit **
   4  Prefactor     1.2441        4.0129        .10489E-05   -.42064E-05
   5  Prefactor     .10000E-03    .57712        .25404E-07** at limit **
   6  Prefactor     18.401        9.7312        .69926E-06    .15372E-03
   7  Prefactor     11.637        9.2854        .35132E-06   -.17674E-04
   8  Prefactor     .10000E-03    24.194       -.77906E-06** at limit **
   9  Prefactor     .10000E-03    3.3843        .47418E-07** at limit **
  10  Prefactor     18.559        13.541       -.39039E-06   -.25136E-04
  11  Prefactor     .10000E-03    9.3149        .13752E-06** at limit **
  12  norm          .10007E-03    .60225       -.16814E-06** at limit **
  13  Prefactor     .10104E-03    1.6479        .42685E-06** at limit **
  14  Prefactor     4.6853        4.7449       -.11846E-06   -.38222E-04
  15  norm          11.600        10.013        .35380E-06    .47490E-04
  16  norm          .10000E-03    3.1671       -.14288E-07** at limit **
  17  Prefactor     .10000E-03    5.6873       -.34147E-07** at limit **
  18  Prefactor     14.823        46.690       -.13028E-06   -.80553E-05
  19  Normalizat    .78228        .19610       -.25208E-05   -.39782E-04
  20  Prefactor     1.3893        .20260        .60281E-06   -.14866E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.36067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.2441
  Prefactor  = 0.0001
  Prefactor  = 18.401
  Prefactor  = 11.6366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5587
  Prefactor  = 0.0001
  norm       = 0.000100071
  Prefactor  = 0.000101036
  Prefactor  = 4.68535
  norm       = 11.5997
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8228
  Normalizat = 0.782281
  Prefactor  = 1.38928
 **********
 **   18 **HESSE 
 **********

 FCN=   5502.411     FROM HESSE     STATUS=OK           309 CALLS     2445 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3607        4.3442        .17123E-03   -1.5341    
   2  Prefactor     .10000E-03    13.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2441        3.9745        .25764E-03   -1.5485    
   5  Prefactor     .10000E-03    .58253        .55011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.401        9.7558        .93373E-04   -1.4850    
   7  Prefactor     11.637        9.2759        .11742E-03   -1.5026    
   8  Prefactor     .10000E-03    24.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3855        .13320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.559        15.488        .92945E-04   -1.4846    
  11  Prefactor     .10000E-03    9.3539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10007E-03    .85514        .20894E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10104E-03    8.0540        .27455E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6853        4.7480        .15823E-03   -1.5275    
  15  norm          11.600        10.021        .11763E-03   -1.5027    
  16  norm          .10000E-03    3.1741        .12892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.7221        .17274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.823        46.741        .10403E-03   -1.4938    
  19  Normalizat    .78228        .22364        .27005E-03   -1.0073    
  20  Prefactor     1.3893        .23708        .23444E-03   -.80690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38027e-10
Minuit parameter uncertainties:
  1  4.34456
  2  5.67761e-05
  3  2.84504e-05
  4  3.97538
  5  3.93007e-07
  6  9.75664
  7  9.27709
  8  3.27323e-05
  9  6.79161e-07
  10  15.4918
  11  7.13549e-06
  12  0.000491546
  13  0.00577894
  14  4.74834
  15  10.0228
  16  3.07137e-06
  17  1.07534e-05
  18  46.8569
  19  0.223898
  20  0.237268
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.164e+01  9.277e+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.389e+00  2.373e-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.823e-01  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.21
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 5.90e-08 +/- 4.69e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.07e-05

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

Saving results to:
/scratch/kocevski/256674/likelihoodResults_529632001_529891201_4FGL_J1051.6+2109_daily_bin1120.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) = 5501.62003699
delta logL = 0.790830133041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5501.59013548
delta logL = 0.820731641609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3194       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2146       1.0000          .0000       10.000    
     3 'Normalizat'    .72169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4401       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=   5501.590     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      281 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3201        59.072        .77564E-04    .25279E-02
   2  Index         4.2150        7.0795        .56149E-02    .31980E-03
   3  Normalizat    .72171        .21203        .28023E-03    .47572E-03
   4  Prefactor     1.4400        .23954        .23098E-03    .49019E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.3201
  Index      = 4.21498
  Normalizat = 0.721713
  Prefactor  = 1.44001
 **********
 **   18 **HESSE 
 **********

 FCN=   5501.590     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3201        7.4437        .31025E-05   -1.5344    
   2  Index         4.2150        1.6244        .22459E-03   -.15766    
   3  Normalizat    .72171        .21918        .56046E-04   -1.0304    
   4  Prefactor     1.4400        .24053        .46197E-04   -.79234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62169e-10
Minuit parameter uncertainties:
  1  7.44576
  2  1.65519
  3  0.219446
  4  0.240717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256674': 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) = 5501.59013475
delta logL = 0.820732378243

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  3.320e+00  7.446e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  4.215e+00  1.655e+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.440e+00  2.407e-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.217e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.08
Ra Dec: 162.913 21.165
Photon Index (Free Index): 4.21 +/- 1.66
Photon Flux (Free Index): 9.67e-08 +/- 6.02e-08
Energy Flux (Free Index): 1.40e-05 +/- 9.24e-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/256674/cmap_HighResolution_529632001_529891201_4FGL_J1051.6+2109_daily_bin1120.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', photon_flux='5.90e-08', energy_flux2='1.40e-05', photon_flux_error='4.69e-08', dlogl='8.21e-01', energy_flux='1.35e-05', photon_flux2='9.67e-08', job_status='DONE', time_completed='2021-09-02 18:56:13.904735', photon_index_error2='1.66', photon_index2='4.21', ts='2.21', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='9.24e-06', EG='0.78', time_epoch_completed='1630634173.9', return_code='0', job_id='256674', GAL2='1.44', EG2='0.72', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='6.02e-08', ts2='4.08', photon_index='2.77' WHERE bin_id='1120' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:56:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 256674: <4FGL_J1051.6+2109_daily_bin1120> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1120 162.913 21.1651 529632001 529891201 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 :                                   608.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            865 sec.

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

