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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1527
RA = 162.913, Dec = 21.1651
tmin = 635126401, tmax = 635385601
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='258343', job_status='RUN', time_executed='2021-09-02 18:53:04.055470', time_epoch_executed='1630633984.06' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258343

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258343/ft1_4FGL_J1051.6+2109_daily_bin1527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258343/ft2_4FGL_J1051.6+2109_daily_bin1527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258343/ft1_4FGL_J1051.6+2109_daily_bin1527.fits outfile=/scratch/kocevski/258343/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1527.fits ra=162.913 dec=21.1651 rad=12.0 tmin=635126401.0 tmax=635385601.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.09
user 2.75
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258343/ft1_filtered_4FGL_J1051.6+2109_daily_bin1527.fits" evtable="EVENTS" scfile=/scratch/kocevski/258343/ft2_4FGL_J1051.6+2109_daily_bin1527.fits sctable="SC_DATA" outfile=/scratch/kocevski/258343/ltcube_635126401_635385601_4FGL_J1051.6+2109_daily_bin1527.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/258343/ft2_4FGL_J1051.6+2109_daily_bin1527.fits
.....................!
real 18.62
user 18.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258343/ft1_filtered_4FGL_J1051.6+2109_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/258343/ft2_4FGL_J1051.6+2109_daily_bin1527.fits sctable="SC_DATA" expcube=/scratch/kocevski/258343/ltcube_635126401_635385601_4FGL_J1051.6+2109_daily_bin1527.fits outfile=/scratch/kocevski/258343/expmap_635126401_635385601_4FGL_J1051.6+2109_daily_bin1527.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/258343/ltcube_635126401_635385601_4FGL_J1051.6+2109_daily_bin1527.fits
.....................!
real 192.30
user 187.43
sys 4.26

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/258343/ft1_filtered_4FGL_J1051.6+2109_daily_bin1527.fits scfile=/scratch/kocevski/258343/ft2_4FGL_J1051.6+2109_daily_bin1527.fits outfile=/scratch/kocevski/258343/cmap_635126401_635385601_4FGL_J1051.6+2109_daily_bin1527.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.57
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258343/ft1_filtered_4FGL_J1051.6+2109_daily_bin1527.fits scfile=/scratch/kocevski/258343/ft2_4FGL_J1051.6+2109_daily_bin1527.fits outfile=/scratch/kocevski/258343/cmap_HighResolution_635126401_635385601_4FGL_J1051.6+2109_daily_bin1527.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.56
user 0.40
sys 0.15

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 288.256520799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 286.36499225

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6848       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6907       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7111       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.338       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .41693E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26119       1.0000         .10000E-03   10000.    
     7 'Prefactor '    130.49       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38003E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    72.473       1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.144       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0445       1.0000         .10000E-03   10000.    
    12 'norm      '    .10643E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.762       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.896       1.0000         .10000E-03   10000.    
    15 'norm      '    .42104E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .58069E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .55304E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14596       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.6149       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   286.3447     FROM MIGRAD    STATUS=CONVERGED    236 CALLS      412 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6848        1.0017         .0000         .0000    
   2  Prefactor     4.6907        1.0058         .0000         .0000    
   3  Prefactor     .32663E-02    222.76        .11421E-04   -.94330E-03
   4  Prefactor     72.860        358.20       -.21509E-04   -.72444E-03
   5  Prefactor     .10000E-03    127.00        .22970E-05** at limit **
   6  Prefactor     .10000E-03    89.471        .76485E-07** at limit **
   7  Prefactor     100.07        305.09        .28268E-04   -.31138E-03
   8  Prefactor     .10000E-03    169.77       -.49653E-05** at limit **
   9  Prefactor     86.397        214.46        .51904E-06    .65061E-03
  10  Prefactor     56.037        175.22       -.67269E-05   -.42683E-03
  11  Prefactor     .10000E-03    260.25       -.47087E-05** at limit **
  12  norm          .10000E-03    7.9788        .10699E-06** at limit **
  13  Prefactor     15.807        23.419        .59545E-06   -.18804E-05
  14  Prefactor     26.449        62.740        .11754E-05    .25684E-05
  15  norm          .10000E-03    173.72       -.28138E-05** at limit **
  16  norm          .10000E-03    82.066        .39196E-06** at limit **
  17  Prefactor     .10000E-03    414.42        .75229E-05** at limit **
  18  Prefactor     .10000E-03    95.170       -.30783E-06** at limit **
  19  Normalizat    .10000E-01    .40949        .24625E-06** at limit **
  20  Prefactor     1.6080        .59678        .36065E-06   -.12499E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.68484
  Prefactor  = 4.6907
  Prefactor  = 0.0032663
  Prefactor  = 72.8596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 100.074
  Prefactor  = 0.000100001
  Prefactor  = 86.3969
  Prefactor  = 56.037
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.8067
  Prefactor  = 26.449
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.60804
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   286.3447     FROM HESSE     STATUS=FAILED        11 CALLS      423 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          500.05        491.34         .0000       -1.5118    
   2  Prefactor     4.6907        1.0058         .0000       -1.5275    
   3  Prefactor     .32663E-02    .68662E-01    .11421E-04   -1.5719    
   4  Prefactor     72.860        1.6291       -.21509E-04   -1.3999    
   5  Prefactor     .10000E-03    .21296        .22970E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .26283        .76485E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     100.07        .87708        .28268E-04   -1.3704    
   8  Prefactor     .10000E-03    .21212       -.49653E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     86.397        1.0911        .51904E-06   -1.3846    
  10  Prefactor     56.037        1.1662       -.67269E-05   -1.4209    
  11  Prefactor     .10000E-03    .37153       -.47087E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .20571        .10699E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.807        .97157        .59545E-06   -1.4913    
  14  Prefactor     26.449        .99184        .11754E-05   -1.4679    
  15  norm          .10000E-03    .21305       -.28138E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .22535        .39196E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .21603        .75229E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .23659       -.30783E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .25505        .24625E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.6080        1.0370        .36065E-06   -.74557    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.75291e-11
Minuit parameter uncertainties:
  1  1.00167
  2  1.0058
  3  0.0294893
  4  1.62906
  5  5.29834e-06
  6  1.0117e-06
  7  0.877083
  8  2.45539e-05
  9  1.0911
  10  1.16625
  11  1.45045e-05
  12  4.14493e-07
  13  0.971566
  14  0.991843
  15  2.1972e-05
  16  1.08799e-06
  17  2.87369e-05
  18  2.17387e-06
  19  3.31889e-08
  20  1.0513
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 286.344744647

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.001e+02  8.771e-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.608e+00  1.051e+00  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.000e-02  3.319e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.37
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 3.08e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.43e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258343/likelihoodResults_635126401_635385601_4FGL_J1051.6+2109_daily_bin1527.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) = 286.343974688
delta logL = 0.000769958798685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 286.343813646
delta logL = 0.000931000886112

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    96.840       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8304       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6079       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=   286.3438     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      257 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     96.630        195.47        .20423E-03    .12932E-04
   2  Index         2.8310        1.3943        .44453E-02    .38746E-05
   3  Normalizat    .10000E-01    .40922        .64655E-02** at limit **
   4  Prefactor     1.6080        .50097        .22136E-03    .52245E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 96.6303
  Index      = 2.83104
  Normalizat = 0.01
  Prefactor  = 1.60796
 **********
 **   18 **HESSE 
 **********

 FCN=   286.3438     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     96.630        193.27        .81692E-05   -1.3739    
   2  Index         2.8310        1.3790        .17781E-03   -.44870    
   3  Normalizat    .10000E-01    .40923        .12931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6080        .50093        .44272E-04   -.74559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19303e-11
Minuit parameter uncertainties:
  1  194.547
  2  1.40145
  3  2.93029e-06
  4  0.502494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258343': 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) = 286.343813057
delta logL = 0.000931590320135

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  9.663e+01  1.945e+02  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.831e+00  1.401e+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.608e+00  5.025e-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.000e-02  2.930e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.37
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/258343/cmap_HighResolution_635126401_635385601_4FGL_J1051.6+2109_daily_bin1527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-01', job_status='DONE', photon_flux_upper_limit='3.08e-06', time_completed='2021-09-02 19:00:38.296149', job_id='258343', GAL2='1.61', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630634438.3', return_code2='0', ts='0.37', comment='SUCCESS', return_code='101', GAL='1.61', dlogl='9.32e-04', ts2='0.40', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1527' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:00:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 258343: <4FGL_J1051.6+2109_daily_bin1527> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1527 162.913 21.1651 635126401 635385601 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 :                                   332.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             282.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            845 sec.

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

