/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 4 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 = 7558
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1051.6+2109_daily_bin320
RA = 162.913, Dec = 21.1651
tmin = 322272001, tmax = 322531201
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='251787', job_status='RUN', time_executed='2021-09-02 18:28:33.509844', time_epoch_executed='1630632513.51' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251787

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251787/ft1_4FGL_J1051.6+2109_daily_bin320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251787/ft2_4FGL_J1051.6+2109_daily_bin320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251787/ft1_4FGL_J1051.6+2109_daily_bin320.fits outfile=/scratch/kocevski/251787/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin320.fits ra=162.913 dec=21.1651 rad=12.0 tmin=322272001.0 tmax=322531201.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.98
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251787/ft1_filtered_4FGL_J1051.6+2109_daily_bin320.fits" evtable="EVENTS" scfile=/scratch/kocevski/251787/ft2_4FGL_J1051.6+2109_daily_bin320.fits sctable="SC_DATA" outfile=/scratch/kocevski/251787/ltcube_322272001_322531201_4FGL_J1051.6+2109_daily_bin320.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/251787/ft2_4FGL_J1051.6+2109_daily_bin320.fits
.....................!
real 15.78
user 15.07
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251787/ft1_filtered_4FGL_J1051.6+2109_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/251787/ft2_4FGL_J1051.6+2109_daily_bin320.fits sctable="SC_DATA" expcube=/scratch/kocevski/251787/ltcube_322272001_322531201_4FGL_J1051.6+2109_daily_bin320.fits outfile=/scratch/kocevski/251787/expmap_322272001_322531201_4FGL_J1051.6+2109_daily_bin320.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/251787/ltcube_322272001_322531201_4FGL_J1051.6+2109_daily_bin320.fits
.....................!
real 190.57
user 185.24
sys 4.68

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/251787/ft1_filtered_4FGL_J1051.6+2109_daily_bin320.fits scfile=/scratch/kocevski/251787/ft2_4FGL_J1051.6+2109_daily_bin320.fits outfile=/scratch/kocevski/251787/cmap_322272001_322531201_4FGL_J1051.6+2109_daily_bin320.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251787/ft1_filtered_4FGL_J1051.6+2109_daily_bin320.fits scfile=/scratch/kocevski/251787/ft2_4FGL_J1051.6+2109_daily_bin320.fits outfile=/scratch/kocevski/251787/cmap_HighResolution_322272001_322531201_4FGL_J1051.6+2109_daily_bin320.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.619       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3023       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.246       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.677       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10357E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    3.4176       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.546       1.0000         .10000E-03   10000.    
    16 'norm      '    26.902       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3419       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .50877       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.6039       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=   5483.740     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2084 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.620        7.7129       -.18681E-08    .30562E-03
   2  Prefactor     .10000E-03    14.072        .10850E-11** at limit **
   3  Prefactor     .10000E-03    28.872        .26844E-10** at limit **
   4  Prefactor     .10000E-03    1.3727        .73095E-09** at limit **
   5  Prefactor     .10000E-03    1.0707        .35308E-08** at limit **
   6  Prefactor     .10000E-03    2.1998        .51215E-10** at limit **
   7  Prefactor     1.2604        .53535       -.25002E-06   -.43184E-04
   8  Prefactor     22.246        33.194       -.11481E-07    .42240E-03
   9  Prefactor     13.676        10.435        .27630E-07   -.21922E-03
  10  Prefactor     .10000E-03    7.1813       -.53537E-09** at limit **
  11  Prefactor     .10000E-03    14.360        .11481E-06** at limit **
  12  norm          3.4176        1.7066       -.77137E-09   -.66314E-04
  13  Prefactor     .10000E-03    3.1107       -.13125E-08** at limit **
  14  Prefactor     .10000E-03    3.0748       -.22343E-09** at limit **
  15  norm          11.546        12.340       -.40499E-08   -.50610E-04
  16  norm          26.901        14.803       -.35982E-08   -.46262E-03
  17  Prefactor     7.3405        10.579       -.39277E-08    .47851E-04
  18  Prefactor     .10000E-03    17.975       -.21448E-09** at limit **
  19  Normalizat    .50880        .18844        .51513E-07   -.80199E-04
  20  Prefactor     1.6039        .20611       -.13930E-07   -.88120E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.6196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.26045
  Prefactor  = 22.2458
  Prefactor  = 13.6756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.41764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.546
  norm       = 26.9007
  Prefactor  = 7.34051
  Prefactor  = 0.0001
  Normalizat = 0.508796
  Prefactor  = 1.60389
 **********
 **   18 **HESSE 
 **********

 FCN=   5483.740     FROM HESSE     STATUS=OK           287 CALLS     2371 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.620        7.7121        .12295E-03   -1.5056    
   2  Prefactor     .10000E-03    14.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.3738        .84725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.6510        .14813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2054        .10724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2604        17.726        .19352E-02   -1.5483    
   8  Prefactor     22.246        33.235        .84923E-04   -1.4764    
   9  Prefactor     13.676        10.898        .10831E-03   -1.4968    
  10  Prefactor     .10000E-03    7.2093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    78.320        .51103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.4176        1.7045        .65263E-04   -1.5338    
  13  Prefactor     .10000E-03    3.2308        .25429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0881        .12678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.546        12.352        .58949E-03   -1.5028    
  16  norm          26.901        14.824        .77237E-04   -1.4670    
  17  Prefactor     7.3405        10.573        .14802E-03   -1.5166    
  18  Prefactor     .10000E-03    17.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .50880        .21949        .32684E-03   -1.1201    
  20  Prefactor     1.6039        .23936        .22097E-03   -.74670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83286e-09
Minuit parameter uncertainties:
  1  7.71287
  2  3.66903e-05
  3  0.00014004
  4  1.87422e-06
  5  2.8759e-06
  6  1.0836e-06
  7  9.45671
  8  33.2626
  9  10.8991
  10  6.46182e-06
  11  5.07184e-05
  12  1.70452
  13  1.15772e-06
  14  6.8416e-07
  15  12.3548
  16  14.826
  17  10.5753
  18  6.91843e-06
  19  0.219868
  20  0.239527
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.604e+00  2.395e-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:  5.088e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251787/likelihoodResults_322272001_322531201_4FGL_J1051.6+2109_daily_bin320.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) = 5483.37800112
delta logL = 0.361993609694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5483.00633421
delta logL = 0.73366052052

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28698E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .46269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6425       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=   5483.006     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      422 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28687E-03    .33959E-03    .16432E-04** at limit **
   2  Index        10.0000        1.6330        .50000    ** at limit **
   3  Normalizat    .46262        .21272        .34183E-03    .56008E-04
   4  Prefactor     1.6424        .24063        .21880E-03    .13160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000286872
  Index      = 10
  Normalizat = 0.462621
  Prefactor  = 1.64243
 **********
 **   18 **HESSE 
 **********

 FCN=   5483.006     FROM HESSE     STATUS=OK            31 CALLS      453 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28687E-03    .32837E-03    .65730E-06   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.5350        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .46262        .21296        .13673E-04   -1.1418    
   4  Prefactor     1.6424        .24084        .43760E-04   -.73625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31584e-10
Minuit parameter uncertainties:
  1  0.000328374
  2  0.000563672
  3  0.213339
  4  0.24101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251787': 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) = 5483.00633257
delta logL = 0.733662156593

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  2.869e-04  3.284e-04  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  1.000e+01  5.637e-04  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.642e+00  2.410e-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:  4.626e-01  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 162.913 21.165
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 3.65e-08 +/- 4.05e-08
Energy Flux (Free Index): 4.08e-06 +/- 4.56e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/251787/cmap_HighResolution_322272001_322531201_4FGL_J1051.6+2109_daily_bin320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.32e-03', comment='SUCCESS', energy_flux2='4.08e-06', dlogl='7.34e-01', photon_flux2='3.65e-08', job_status='DONE', time_completed='2021-09-02 18:38:37.780356', photon_index_error2='0.00', photon_index2='10.00', ts='0.02', fit_tolerance='1e-08', GAL='1.60', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='4.56e-06', EG='0.51', time_epoch_completed='1630633117.78', return_code='0', job_id='251787', GAL2='1.64', EG2='0.46', return_code2='0', photon_flux_error2='4.05e-08', ts2='1.55', photon_index='2.77' WHERE bin_id='320' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:38:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 251787: <4FGL_J1051.6+2109_daily_bin320> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin320> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 18:26:31 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:27:49 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:27:49 2021
Terminated at Thu Sep  2 18:38:38 2021
Results reported at Thu Sep  2 18:38:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin320 162.913 21.1651 322272001 322531201 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 :                                   594.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            727 sec.

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

