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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1109
RA = 162.913, Dec = 21.1651
tmin = 526780801, tmax = 527040001
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='256657', job_status='RUN', time_executed='2021-09-02 18:45:24.008666', time_epoch_executed='1630633524.01' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256657/ft1_4FGL_J1051.6+2109_daily_bin1109.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256657/ft2_4FGL_J1051.6+2109_daily_bin1109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256657/ft1_4FGL_J1051.6+2109_daily_bin1109.fits outfile=/scratch/kocevski/256657/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1109.fits ra=162.913 dec=21.1651 rad=12.0 tmin=526780801.0 tmax=527040001.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 4.52
user 4.13
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256657/ft1_filtered_4FGL_J1051.6+2109_daily_bin1109.fits evtable="EVENTS" scfile=/scratch/kocevski/256657/ft2_4FGL_J1051.6+2109_daily_bin1109.fits sctable="SC_DATA" expcube=/scratch/kocevski/256657/ltcube_526780801_527040001_4FGL_J1051.6+2109_daily_bin1109.fits outfile=/scratch/kocevski/256657/expmap_526780801_527040001_4FGL_J1051.6+2109_daily_bin1109.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/256657/ltcube_526780801_527040001_4FGL_J1051.6+2109_daily_bin1109.fits
.....................!
real 191.06
user 185.76
sys 4.40

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/256657/ft1_filtered_4FGL_J1051.6+2109_daily_bin1109.fits scfile=/scratch/kocevski/256657/ft2_4FGL_J1051.6+2109_daily_bin1109.fits outfile=/scratch/kocevski/256657/cmap_526780801_527040001_4FGL_J1051.6+2109_daily_bin1109.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256657/ft1_filtered_4FGL_J1051.6+2109_daily_bin1109.fits scfile=/scratch/kocevski/256657/ft2_4FGL_J1051.6+2109_daily_bin1109.fits outfile=/scratch/kocevski/256657/cmap_HighResolution_526780801_527040001_4FGL_J1051.6+2109_daily_bin1109.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.063       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .56344       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.732       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1630       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28137E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10830E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10954E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0301       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    22.053       1.0000         .10000E-03   10000.    
    16 'norm      '    28.758       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.916       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11759E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3318       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92978       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=   5600.004     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     1793 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.065        8.2187        .35954E-06    .13986E-03
   2  Prefactor     .10000E-03    14.968        .76985E-08** at limit **
   3  Prefactor     .10000E-03    33.214       -.34599E-07** at limit **
   4  Prefactor     .10000E-03    2.7165       -.28965E-07** at limit **
   5  Prefactor     .56225        2.2473        .12640E-05   -.19605E-03
   6  Prefactor     20.733        11.018       -.76765E-07   -.24179E-03
   7  Prefactor     6.1529        9.6961        .10501E-05    .17714E-03
   8  Prefactor     .10006E-03    22.926        .16468E-05** at limit **
   9  Prefactor     .10000E-03    6.3008        .44099E-06** at limit **
  10  Prefactor     .10000E-03    6.5833       -.16132E-06** at limit **
  11  Prefactor     .10000E-03    8.7502        .45125E-06** at limit **
  12  norm          .10000E-03    .98115       -.40181E-07** at limit **
  13  Prefactor     1.0304        3.3596        .11074E-05   -.10831E-03
  14  Prefactor     .10000E-03    2.7021        .41622E-07** at limit **
  15  norm          22.016        18.312        .75172E-06    .96603E-04
  16  norm          28.756        17.406        .24960E-06    .34004E-05
  17  Prefactor     18.911        17.354        .39896E-06   -.94635E-06
  18  Prefactor     .10000E-03    185.77        .24351E-06** at limit **
  19  Normalizat    1.3318        .21980       -.17462E-05   -.11565E-03
  20  Prefactor     .92962        .20520        .42760E-06   -.19423E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.0652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.562247
  Prefactor  = 20.7332
  Prefactor  = 6.15289
  Prefactor  = 0.00010006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.03036
  Prefactor  = 0.0001
  norm       = 22.0159
  norm       = 28.7559
  Prefactor  = 18.9111
  Prefactor  = 0.0001
  Normalizat = 1.33179
  Prefactor  = 0.929618
 **********
 **   18 **HESSE 
 **********

 FCN=   5600.004     FROM HESSE     STATUS=OK           293 CALLS     2086 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.065        8.2792        .12045E-03   -1.5043    
   2  Prefactor     .10000E-03    14.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7292        .12043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .56225        2.3363        .21278E-03   -1.5558    
   6  Prefactor     20.733        11.146        .87967E-04   -1.4797    
   7  Prefactor     6.1529        9.9751        .16171E-03   -1.5212    
   8  Prefactor     .10006E-03    91.302        .67438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.2902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.6019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.7467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0240        .14431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0304        3.3793        .23357E-03   -1.5505    
  14  Prefactor     .10000E-03    2.7067        .12012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          22.016        18.477        .85294E-04   -1.4769    
  16  norm          28.756        17.457        .74708E-04   -1.4635    
  17  Prefactor     18.911        17.386        .92090E-04   -1.4838    
  18  Prefactor     .10000E-03    187.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3318        .25907        .24551E-03   -.82622    
  20  Prefactor     .92962        .24563        .29388E-03   -.95114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96638e-10
Minuit parameter uncertainties:
  1  8.28002
  2  6.53989e-06
  3  5.37107e-06
  4  5.52237e-06
  5  2.2922
  6  11.1472
  7  9.97778
  8  0.0046841
  9  2.31637e-05
  10  1.66744e-05
  11  1.33161e-05
  12  2.86969e-06
  13  3.37995
  14  1.59871e-06
  15  18.4821
  16  17.4598
  17  17.3909
  18  0.000161779
  19  0.259326
  20  0.245919
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  6.153e+00  9.978e+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:  9.296e-01  2.459e-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.332e+00  2.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/256657/likelihoodResults_526780801_527040001_4FGL_J1051.6+2109_daily_bin1109.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) = 5600.00365445
delta logL = 0.0003849780569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5600.00317713
delta logL = 0.000862290713485

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7784       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8840       1.0000          .0000       10.000    
     3 'Normalizat'    1.3298       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93114       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=   5600.003     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      303 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7687        16.459        .16708E-03    .19508E-03
   2  Index         2.8895        3.1103        .96363E-02    .58505E-04
   3  Normalizat    1.3282        .25978        .24579E-03   -.34597E-03
   4  Prefactor     .93264        .25827        .29347E-03   -.27632E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.76868
  Index      = 2.88945
  Normalizat = 1.32825
  Prefactor  = 0.932642
 **********
 **   18 **HESSE 
 **********

 FCN=   5600.003     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7687        13.993        .66832E-05   -1.5228    
   2  Index         2.8895        2.7109        .38545E-03   -.43577    
   3  Normalizat    1.3282        .25631        .49158E-04   -.82727    
   4  Prefactor     .93264        .25495        .58693E-04   -.95010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06826e-09
Minuit parameter uncertainties:
  1  14.0006
  2  2.90587
  3  0.256558
  4  0.255278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256657': 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) = 5600.00315809
delta logL = 0.000881335685335

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  5.769e+00  1.400e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.889e+00  2.906e+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:  9.326e-01  2.553e-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.328e+00  2.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
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/256657/cmap_HighResolution_526780801_527040001_4FGL_J1051.6+2109_daily_bin1109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-09-02 18:55:14.112407', job_id='256657', GAL2='0.93', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630634114.11', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='8.81e-04', ts2='0.47', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1109' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:55:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 256657: <4FGL_J1051.6+2109_daily_bin1109> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1109 162.913 21.1651 526780801 527040001 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 :                                   575.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            807 sec.

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

