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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1508
RA = 162.913, Dec = 21.1651
tmin = 630201601, tmax = 630460801
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='258304', job_status='RUN', time_executed='2021-09-02 18:49:44.225805', time_epoch_executed='1630633784.23' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258304

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258304/ft1_4FGL_J1051.6+2109_daily_bin1508.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258304/ft2_4FGL_J1051.6+2109_daily_bin1508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258304/ft1_4FGL_J1051.6+2109_daily_bin1508.fits outfile=/scratch/kocevski/258304/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1508.fits ra=162.913 dec=21.1651 rad=12.0 tmin=630201601.0 tmax=630460801.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.71
user 3.43
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258304/ft1_filtered_4FGL_J1051.6+2109_daily_bin1508.fits" evtable="EVENTS" scfile=/scratch/kocevski/258304/ft2_4FGL_J1051.6+2109_daily_bin1508.fits sctable="SC_DATA" outfile=/scratch/kocevski/258304/ltcube_630201601_630460801_4FGL_J1051.6+2109_daily_bin1508.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/258304/ft2_4FGL_J1051.6+2109_daily_bin1508.fits
.....................!
real 16.15
user 15.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258304/ft1_filtered_4FGL_J1051.6+2109_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/258304/ft2_4FGL_J1051.6+2109_daily_bin1508.fits sctable="SC_DATA" expcube=/scratch/kocevski/258304/ltcube_630201601_630460801_4FGL_J1051.6+2109_daily_bin1508.fits outfile=/scratch/kocevski/258304/expmap_630201601_630460801_4FGL_J1051.6+2109_daily_bin1508.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/258304/ltcube_630201601_630460801_4FGL_J1051.6+2109_daily_bin1508.fits
.....................!
real 191.39
user 185.85
sys 4.91

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/258304/ft1_filtered_4FGL_J1051.6+2109_daily_bin1508.fits scfile=/scratch/kocevski/258304/ft2_4FGL_J1051.6+2109_daily_bin1508.fits outfile=/scratch/kocevski/258304/cmap_630201601_630460801_4FGL_J1051.6+2109_daily_bin1508.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258304/ft1_filtered_4FGL_J1051.6+2109_daily_bin1508.fits scfile=/scratch/kocevski/258304/ft2_4FGL_J1051.6+2109_daily_bin1508.fits outfile=/scratch/kocevski/258304/cmap_HighResolution_630201601_630460801_4FGL_J1051.6+2109_daily_bin1508.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.878       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9921       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2549       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.281       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4289       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .64559       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.271       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.345       1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .48089       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6842       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.639       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.030       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .79793       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3807       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=   4926.110     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     1840 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.875        14.251        .13438E-06   -.10679E-04
   2  Prefactor     .10000E-03    66.200       -.18602E-05** at limit **
   3  Prefactor     .10000E-03    93.798        .15341E-05** at limit **
   4  Prefactor     6.9909        7.1181       -.21344E-06   -.12307E-03
   5  Prefactor     2.2549        2.1288        .58262E-06   -.10806E-02
   6  Prefactor     18.276        10.059       -.54426E-06   -.50883E-03
   7  Prefactor     7.4262        10.967        .11620E-05    .26398E-03
   8  Prefactor     .11700E-03    39.013        .73528E-07** at limit **
   9  Prefactor     23.271        13.305        .59625E-06    .38835E-03
  10  Prefactor     .10000E-03    5.3424       -.57608E-07** at limit **
  11  Prefactor     10.345        16.380        .40466E-06    .12038E-03
  12  norm          .10000E-03    .84546        .20974E-07** at limit **
  13  Prefactor     .48148        3.1001        .10480E-05   -.34513E-03
  14  Prefactor     4.6827        6.1888        .22944E-05   -.10030E-02
  15  norm          .10000E-03    6.8681        .11078E-07** at limit **
  16  norm          15.638        12.014        .22269E-05    .71210E-03
  17  Prefactor     21.028        12.509        .10926E-05    .54882E-03
  18  Prefactor     .10000E-03    46.485        .98643E-06** at limit **
  19  Normalizat    .79780        .21412       -.30467E-05    .29861E-04
  20  Prefactor     1.3811        .22240        .93162E-06   -.10168E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 31.8747
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 6.99094
  Prefactor  = 2.25493
  Prefactor  = 18.2763
  Prefactor  = 7.42621
  Prefactor  = 0.000117005
  Prefactor  = 23.2712
  Prefactor  = 0.0001
  Prefactor  = 10.345
  norm       = 0.0001
  Prefactor  = 0.481476
  Prefactor  = 4.68267
  norm       = 0.0001
  norm       = 15.6378
  Prefactor  = 21.0277
  Prefactor  = 0.0001
  Normalizat = 0.797802
  Prefactor  = 1.38111
 **********
 **   18 **HESSE 
 **********

 FCN=   4926.110     FROM HESSE     STATUS=OK           301 CALLS     2141 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.875        14.251        .70967E-04   -1.4578    
   2  Prefactor     .10000E-03    66.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    94.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9909        7.1099        .15171E-03   -1.5179    
   5  Prefactor     2.2549        2.1570        .48666E-03   -1.5408    
   6  Prefactor     18.276        10.161        .93674E-04   -1.4853    
   7  Prefactor     7.4262        10.975        .14715E-03   -1.5163    
   8  Prefactor     .11700E-03    47.868        .12746       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.271        13.349        .83035E-04   -1.4743    
  10  Prefactor     .10000E-03    5.3548        .15840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.345        16.338        .12457E-03   -1.5065    
  12  norm          .10000E-03    1.3553        .12447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .48148        3.1765        .23635E-03   -1.5569    
  14  Prefactor     4.6827        6.7372        .92968E-03   -1.5275    
  15  norm          .10000E-03    6.9167        .17962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.638        12.453        .10128E-03   -1.4917    
  17  Prefactor     21.028        12.819        .87341E-04   -1.4791    
  18  Prefactor     .10000E-03    46.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .79780        .24810        .29076E-03   -1.0015    
  20  Prefactor     1.3811        .26199        .25197E-03   -.80926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77737e-09
Minuit parameter uncertainties:
  1  14.2529
  2  0.000431817
  3  0.000549812
  4  7.11081
  5  2.15703
  6  10.1616
  7  10.9779
  8  0.0571065
  9  13.351
  10  4.34871e-06
  11  16.3454
  12  3.17387e-05
  13  2.4733
  14  6.73825
  15  1.00347e-05
  16  12.4547
  17  12.8207
  18  0.000249042
  19  0.248451
  20  0.26224
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  7.426e+00  1.098e+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.381e+00  2.622e-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.978e-01  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/258304/likelihoodResults_630201601_630460801_4FGL_J1051.6+2109_daily_bin1508.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) = 4926.00305716
delta logL = 0.107417458907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4925.99644273
delta logL = 0.114031882344

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5549       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5567       1.0000          .0000       10.000    
     3 'Normalizat'    .77136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4022       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=   4925.996     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      251 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5460        133.85        .47155E-02    .39139E-03
   2  Index         3.5585        6.7700        .21089        .63929E-04
   3  Normalizat    .77132        .59977E-01    .66707E-01    .17664E-04
   4  Prefactor     1.4021        .64202E-01    .56629E-01    .10207E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.54597
  Index      = 3.55847
  Normalizat = 0.771321
  Prefactor  = 1.40211
 **********
 **   18 **HESSE 
 **********

 FCN=   4925.996     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5460        29.347        .16146E-03   -1.5282    
   2  Index         3.5585        3.7925        .94850E-02   -.29246    
   3  Normalizat    .77132        .25379        .29514E-03   -1.0114    
   4  Prefactor     1.4021        .27552        .25038E-03   -.80319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55751e-11
Minuit parameter uncertainties:
  1  23.1171
  2  4.37741
  3  0.254183
  4  0.275814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258304': 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) = 4925.99644209
delta logL = 0.114032522522

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  4.546e+00  2.312e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.558e+00  4.377e+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.402e+00  2.758e-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.713e-01  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.65
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/258304/cmap_HighResolution_630201601_630460801_4FGL_J1051.6+2109_daily_bin1508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-09-02 19:00:44.693035', job_id='258304', GAL2='1.40', fit_tolerance='1e-08', EG2='0.77', EG='0.80', time_epoch_completed='1630634444.69', return_code2='0', ts='0.65', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='1.14e-01', ts2='0.93', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1508' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:00:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 258304: <4FGL_J1051.6+2109_daily_bin1508> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1508> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 18:46:32 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:49:02 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:49:02 2021
Terminated at Thu Sep  2 19:00:45 2021
Results reported at Thu Sep  2 19:00:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1508 162.913 21.1651 630201601 630460801 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 :                                   549.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            853 sec.

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

