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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1148
RA = 162.913, Dec = 21.1651
tmin = 536889601, tmax = 537148801
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='256707', job_status='RUN', time_executed='2021-09-02 18:46:20.448961', time_epoch_executed='1630633580.45' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256707

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256707/ft1_4FGL_J1051.6+2109_daily_bin1148.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256707/ft2_4FGL_J1051.6+2109_daily_bin1148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256707/ft1_4FGL_J1051.6+2109_daily_bin1148.fits outfile=/scratch/kocevski/256707/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1148.fits ra=162.913 dec=21.1651 rad=12.0 tmin=536889601.0 tmax=537148801.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.70
user 3.43
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/256707/ft2_4FGL_J1051.6+2109_daily_bin1148.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/256707/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1148.fits evtable="EVENTS" outfile="/scratch/kocevski/256707/ft1_filtered_4FGL_J1051.6+2109_daily_bin1148.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.56
user 0.36
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256707/ft1_filtered_4FGL_J1051.6+2109_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/256707/ft2_4FGL_J1051.6+2109_daily_bin1148.fits sctable="SC_DATA" expcube=/scratch/kocevski/256707/ltcube_536889601_537148801_4FGL_J1051.6+2109_daily_bin1148.fits outfile=/scratch/kocevski/256707/expmap_536889601_537148801_4FGL_J1051.6+2109_daily_bin1148.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/256707/ltcube_536889601_537148801_4FGL_J1051.6+2109_daily_bin1148.fits
.....................!
real 193.90
user 188.11
sys 5.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/256707/ft1_filtered_4FGL_J1051.6+2109_daily_bin1148.fits scfile=/scratch/kocevski/256707/ft2_4FGL_J1051.6+2109_daily_bin1148.fits outfile=/scratch/kocevski/256707/cmap_536889601_537148801_4FGL_J1051.6+2109_daily_bin1148.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.61
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256707/ft1_filtered_4FGL_J1051.6+2109_daily_bin1148.fits scfile=/scratch/kocevski/256707/ft2_4FGL_J1051.6+2109_daily_bin1148.fits outfile=/scratch/kocevski/256707/cmap_HighResolution_536889601_537148801_4FGL_J1051.6+2109_daily_bin1148.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.60
user 0.42
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3847       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15317E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4217       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.669       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2628       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.4368       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7711       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5021       1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.786       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3718       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .73030       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=   6754.034     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2357 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3848        7.1565        .59336E-06    .65233E-04
   2  Prefactor     .10003E-03    27.052        .88597E-08** at limit **
   3  Prefactor     .10000E-03    31.555        .25297E-06** at limit **
   4  Prefactor     .10000E-03    3.9003        .17110E-06** at limit **
   5  Prefactor     .10000E-03    .80907        .24785E-06** at limit **
   6  Prefactor     3.4214        4.6465        .13337E-06   -.52275E-04
   7  Prefactor     .10000E-03    3.2328        .27309E-06** at limit **
   8  Prefactor     .10000E-03    13.070        .10004E-05** at limit **
   9  Prefactor     24.668        11.551        .47989E-06    .17447E-04
  10  Prefactor     9.2607        13.174        .97430E-06   -.78000E-05
  11  Prefactor     .10000E-03    5.0607        .68533E-07** at limit **
  12  norm          3.4367        1.5896       -.91830E-07   -.29226E-03
  13  Prefactor     .10000E-03    1.1827        .21979E-06** at limit **
  14  Prefactor     .10000E-03    3.1960       -.12690E-07** at limit **
  15  norm          4.7715        3.5968        .19115E-06   -.68365E-03
  16  norm          .10000E-03    4.5350        .24368E-06** at limit **
  17  Prefactor     7.5017        6.7819        .63726E-06    .85199E-04
  18  Prefactor     44.795        41.911        .20504E-05    .38103E-04
  19  Normalizat    1.3720        .17510       -.16919E-05   -.17688E-04
  20  Prefactor     .73016        .17180        .11372E-05   -.12627E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.38479
  Prefactor  = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.42142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.6684
  Prefactor  = 9.26067
  Prefactor  = 0.0001
  norm       = 3.43669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.7715
  norm       = 0.0001
  Prefactor  = 7.50167
  Prefactor  = 44.7946
  Normalizat = 1.37199
  Prefactor  = 0.73016
 **********
 **   18 **HESSE 
 **********

 FCN=   6754.034     FROM HESSE     STATUS=OK           297 CALLS     2654 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3848        7.1672        .13082E-03   -1.5095    
   2  Prefactor     .10003E-03    28.053        .13434       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9493        .15852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .82747        .72194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4214        4.6412        .19864E-03   -1.5338    
   7  Prefactor     .10000E-03    3.2462        .14415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.668        11.518        .80652E-04   -1.4714    
  10  Prefactor     9.2607        13.117        .13168E-03   -1.5099    
  11  Prefactor     .10000E-03    5.0765        .18052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.4367        1.5903        .67058E-04   -1.5337    
  13  Prefactor     .10000E-03    1.1880        .87019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2276        .14345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7715        8.3906        .92099E-03   -1.5271    
  16  norm          .10000E-03    4.5555        .17102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.5017        6.8036        .14642E-03   -1.5160    
  18  Prefactor     44.795        42.466        .59909E-04   -1.4368    
  19  Normalizat    1.3720        .19444        .22266E-03   -.81442    
  20  Prefactor     .73016        .19300        .29953E-03   -1.0236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67987e-10
Minuit parameter uncertainties:
  1  7.1679
  2  0.00190284
  3  2.01253e-05
  4  7.18931e-06
  5  1.81329e-06
  6  4.64174
  7  2.59307e-06
  8  3.53763e-05
  9  11.5194
  10  13.1209
  11  3.17883e-07
  12  1.5903
  13  9.13566e-07
  14  1.29397e-07
  15  8.39267
  16  8.53255e-06
  17  6.8043
  18  42.4943
  19  0.194539
  20  0.193181
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  2.593e-06  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:  7.302e-01  1.932e-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.372e+00  1.945e-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: 6.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256707/likelihoodResults_536889601_537148801_4FGL_J1051.6+2109_daily_bin1148.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) = 6754.0352757
delta logL = -0.00146200767358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6754.03381384
delta logL = -1.5019577404e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7598       1.0000          .0000       10.000    
     3 'Normalizat'    1.3720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73019       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=   6754.034     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      255 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.639        .14494E-01** at limit **
   2  Index         2.3959        5.3952        .50000        .46975E-07
   3  Normalizat    1.3720        .92651E-02    .22266E-03   -.35178E-03
   4  Prefactor     .73016        .94457E-02    .29953E-03   -.25847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.39592
  Normalizat = 1.37199
  Prefactor  = 0.730161
 **********
 **   18 **HESSE 
 **********

 FCN=   6754.034     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    166.22        .15085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3959        5.4029        .50000       -.54781    
   3  Normalizat    1.3720        .30665E-01    .44533E-04   -.81442    
   4  Prefactor     .73016        .31262E-01    .11981E-04   -1.0236    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.77768e-10
Minuit parameter uncertainties:
  1  0.000255999
  2  758.795
  3  0.0306652
  4  0.0312632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256707': 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) = 6754.03381231
delta logL = 1.37968800118e-06

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  2.560e-04  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.396e+00  7.588e+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:  7.302e-01  3.126e-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.372e+00  3.067e-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/256707/cmap_HighResolution_536889601_537148801_4FGL_J1051.6+2109_daily_bin1148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', job_status='DONE', photon_flux_upper_limit='6.64e-08', time_completed='2021-09-02 18:58:08.037754', job_id='256707', GAL2='0.73', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630634288.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.38e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1148' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:58:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 256707: <4FGL_J1051.6+2109_daily_bin1148> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1148 162.913 21.1651 536889601 537148801 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 :                                   679.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            975 sec.

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

