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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin959
RA = 162.913, Dec = 21.1651
tmin = 487900801, tmax = 488160001
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='256429', job_status='RUN', time_executed='2021-09-02 18:46:17.909398', time_epoch_executed='1630633577.91' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256429/ft1_4FGL_J1051.6+2109_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256429/ft2_4FGL_J1051.6+2109_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256429/ft1_4FGL_J1051.6+2109_daily_bin959.fits outfile=/scratch/kocevski/256429/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin959.fits ra=162.913 dec=21.1651 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.31
user 5.94
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/256429/ft2_4FGL_J1051.6+2109_daily_bin959.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/256429/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/256429/ft1_filtered_4FGL_J1051.6+2109_daily_bin959.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/256429/ft1_filtered_4FGL_J1051.6+2109_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/256429/ft2_4FGL_J1051.6+2109_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/256429/ltcube_487900801_488160001_4FGL_J1051.6+2109_daily_bin959.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/256429/ft2_4FGL_J1051.6+2109_daily_bin959.fits
.....................!
real 15.38
user 15.01
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256429/ft1_filtered_4FGL_J1051.6+2109_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/256429/ft2_4FGL_J1051.6+2109_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/256429/ltcube_487900801_488160001_4FGL_J1051.6+2109_daily_bin959.fits outfile=/scratch/kocevski/256429/expmap_487900801_488160001_4FGL_J1051.6+2109_daily_bin959.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/256429/ltcube_487900801_488160001_4FGL_J1051.6+2109_daily_bin959.fits
.....................!
real 194.10
user 187.15
sys 5.72

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/256429/ft1_filtered_4FGL_J1051.6+2109_daily_bin959.fits scfile=/scratch/kocevski/256429/ft2_4FGL_J1051.6+2109_daily_bin959.fits outfile=/scratch/kocevski/256429/cmap_487900801_488160001_4FGL_J1051.6+2109_daily_bin959.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256429/ft1_filtered_4FGL_J1051.6+2109_daily_bin959.fits scfile=/scratch/kocevski/256429/ft2_4FGL_J1051.6+2109_daily_bin959.fits outfile=/scratch/kocevski/256429/cmap_HighResolution_487900801_488160001_4FGL_J1051.6+2109_daily_bin959.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=162.913 yref=21.1651 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/256429/ft1_filtered_4FGL_J1051.6+2109_daily_bin959.fits', '/scratch/kocevski/256429/ft2_4FGL_J1051.6+2109_daily_bin959.fits', expMap='/scratch/kocevski/256429/expmap_487900801_488160001_4FGL_J1051.6+2109_daily_bin959.fits', expCube='/scratch/kocevski/256429/ltcube_487900801_488160001_4FGL_J1051.6+2109_daily_bin959.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/256429/Model_4FGL_J1051.6+2109_daily_bin959.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/256429/ft1_filtered_4FGL_J1051.6+2109_daily_bin959.fits
Spacecraft file(s): /scratch/kocevski/256429/ft2_4FGL_J1051.6+2109_daily_bin959.fits
Exposure map: /scratch/kocevski/256429/expmap_487900801_488160001_4FGL_J1051.6+2109_daily_bin959.fits
Exposure cube: /scratch/kocevski/256429/ltcube_487900801_488160001_4FGL_J1051.6+2109_daily_bin959.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/256429/Model_4FGL_J1051.6+2109_daily_bin959.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4581.38765009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8568       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .52086E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0839       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.778       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.716       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9346       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .84759E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10644E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.677       1.0000         .10000E-03   10000.    
    12 'norm      '    .86038       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8183       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2362       1.0000         .10000E-03   10000.    
    15 'norm      '    4.8067       1.0000         .10000E-03   10000.    
    16 'norm      '    20.433       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .60429       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20948E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .71446       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2782       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=   4580.195     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     1494 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9871        7.9800       -.58412E-06   -.16370E-03
   2  Prefactor     .10000E-03    14.486       -.21965E-06** at limit **
   3  Prefactor     .10000E-03    24.956        .68249E-06** at limit **
   4  Prefactor     5.9865        5.2262        .96898E-06   -.12245E-02
   5  Prefactor     .10000E-03    .89780        .10624E-07** at limit **
   6  Prefactor     38.921        12.368        .47160E-06    .26936E-03
   7  Prefactor     20.686        13.049       -.11730E-05   -.28797E-03
   8  Prefactor     5.1487        31.357        .89493E-06    .80325E-05
   9  Prefactor     .10001E-03    6.1306        .48803E-06** at limit **
  10  Prefactor     .10000E-03    3.8934        .80894E-07** at limit **
  11  Prefactor     15.661        21.976        .18393E-05    .28817E-04
  12  norm          .85881        1.7287        .45813E-07   -.24190E-03
  13  Prefactor     2.8172        2.6472        .17150E-07   -.71885E-04
  14  Prefactor     5.2184        5.9234       -.87927E-07   -.63671E-04
  15  norm          4.7463        11.478       -.28605E-05   -.23504E-03
  16  norm          20.571        12.774       -.10151E-05   -.26697E-03
  17  Prefactor     .60265        7.8584        .63630E-06   -.22166E-03
  18  Prefactor     .10000E-03    13.482       -.56030E-06** at limit **
  19  Normalizat    .71422        .20432        .39908E-06   -.35918E-04
  20  Prefactor     1.2781        .21396       -.81521E-07   -.51114E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.98711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.98645
  Prefactor  = 0.0001
  Prefactor  = 38.921
  Prefactor  = 20.6857
  Prefactor  = 5.14867
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 15.6608
  norm       = 0.85881
  Prefactor  = 2.81723
  Prefactor  = 5.21836
  norm       = 4.74627
  norm       = 20.5711
  Prefactor  = 0.602646
  Prefactor  = 0.0001
  Normalizat = 0.714224
  Prefactor  = 1.27805
 **********
 **   18 **HESSE 
 **********

 FCN=   4580.195     FROM HESSE     STATUS=OK           299 CALLS     1793 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9871        8.0126        .15322E-03   -1.5179    
   2  Prefactor     .10000E-03    14.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.997        .19146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.9865        7.4309        .81387E-03   -1.5219    
   5  Prefactor     .10000E-03    .90980        .62584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     38.921        12.360        .64365E-04   -1.4459    
   7  Prefactor     20.686        12.974        .88000E-04   -1.4798    
   8  Prefactor     5.1487        31.337        .18105E-03   -1.5254    
   9  Prefactor     .10001E-03    22.789        .31362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8978        .13040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.661        21.814        .10116E-03   -1.4916    
  12  norm          .85881        1.6827        .11883E-03   -1.5523    
  13  Prefactor     2.8172        2.6436        .10234E-03   -1.5372    
  14  Prefactor     5.2184        5.9133        .16996E-03   -1.5251    
  15  norm          4.7463        11.729        .18350E-03   -1.5272    
  16  norm          20.571        12.935        .88608E-04   -1.4801    
  17  Prefactor     .60265        20.705        .36691E-02   -1.5553    
  18  Prefactor     .10000E-03    13.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .71422        .24195        .28279E-03   -1.0333    
  20  Prefactor     1.2781        .25269        .24092E-03   -.83962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09363e-09
Minuit parameter uncertainties:
  1  8.01381
  2  1.96377e-05
  3  6.46126e-05
  4  7.43209
  5  8.45435e-08
  6  12.3612
  7  12.9758
  8  25.4239
  9  0.000695993
  10  2.25937e-06
  11  21.8251
  12  1.68282
  13  2.64376
  14  5.91397
  15  11.7345
  16  12.9363
  17  7.06688
  18  3.8459e-05
  19  0.242312
  20  0.252929
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  2.069e+01  1.298e+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.278e+00  2.529e-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.142e-01  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.20
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 6.57e-08
Energy Flux (Fixed Index): 2.39e-05 +/- 1.50e-05

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) = 4579.9719594
delta logL = 0.223038492916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4579.96761588
delta logL = 0.227382018966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.452       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2431       1.0000          .0000       10.000    
     3 'Normalizat'    .68582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3020       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=   4579.968     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      293 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.446        14.634        .10536E-03    .23203E-02
   2  Index         3.2422        .85126        .54292E-02    .53937E-03
   3  Normalizat    .68600        .23387        .28795E-03   -.94102E-03
   4  Prefactor     1.3020        .25480        .23907E-03   -.12796E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4462
  Index      = 3.24223
  Normalizat = 0.686
  Prefactor  = 1.30205
 **********
 **   18 **HESSE 
 **********

 FCN=   4579.968     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.446        13.309        .21072E-04   -1.4948    
   2  Index         3.2422        .77415        .21717E-03   -.35923    
   3  Normalizat    .68600        .23384        .57589E-04   -1.0445    
   4  Prefactor     1.3020        .25464        .47813E-04   -.83246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76476e-09
Minuit parameter uncertainties:
  1  13.3118
  2  0.777728
  3  0.234179
  4  0.254887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256429': 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) = 4579.96761085
delta logL = 0.227387044562

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.445e+01  1.331e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.242e+00  7.777e-01  0.000e+00  1.000e+01 (-1.000e+00)
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.302e+00  2.549e-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:  6.860e-01  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.82
Ra Dec: 162.913 21.165
Photon Index (Free Index): 3.24 +/- 0.78
Photon Flux (Free Index): 1.24e-07 +/- 6.87e-08
Energy Flux (Free Index): 2.24e-05 +/- 1.22e-05

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/256429/cmap_HighResolution_487900801_488160001_4FGL_J1051.6+2109_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='2.24e-05', photon_flux_error='6.57e-08', dlogl='2.27e-01', energy_flux='2.39e-05', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-02 18:54:46.264076', photon_index_error2='0.78', photon_index2='3.24', ts='5.20', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='0.71', time_epoch_completed='1630634086.26', return_code='0', job_id='256429', GAL2='1.30', EG2='0.69', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='6.87e-08', ts2='5.82', photon_index='2.77' WHERE bin_id='959' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:54:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 256429: <4FGL_J1051.6+2109_daily_bin959> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin959 162.913 21.1651 487900801 488160001 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 :                                   493.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            793 sec.

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

