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


Performing analysis on: 4FGL_J0211.2+1051_daily_bin1248
RA = 32.8091, Dec = 10.8569
tmin = 562809601, tmax = 563068801
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='192296', job_status='RUN', time_executed='2021-08-15 11:18:15.028388', time_epoch_executed='1629051495.03' WHERE source_name='4FGL J0211.2+1051' and cadence='daily' and bin_id='1248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192296

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192296/ft1_4FGL_J0211.2+1051_daily_bin1248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192296/ft2_4FGL_J0211.2+1051_daily_bin1248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192296/ft1_4FGL_J0211.2+1051_daily_bin1248.fits outfile=/scratch/kocevski/192296/ft1_filteredMKT_4FGL_J0211.2+1051_daily_bin1248.fits ra=32.8091 dec=10.8569 rad=12.0 tmin=562809601.0 tmax=563068801.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 11.59
user 3.20
sys 8.11

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/192296/ft2_4FGL_J0211.2+1051_daily_bin1248.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/192296/ft2_4FGL_J0211.2+1051_daily_bin1248.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/192296/ft1_filteredMKT_4FGL_J0211.2+1051_daily_bin1248.fits evtable="EVENTS" outfile="/scratch/kocevski/192296/ft1_filtered_4FGL_J0211.2+1051_daily_bin1248.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 8.52
user 0.37
sys 8.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192296/ft1_filtered_4FGL_J0211.2+1051_daily_bin1248.fits" evtable="EVENTS" scfile=/scratch/kocevski/192296/ft2_4FGL_J0211.2+1051_daily_bin1248.fits sctable="SC_DATA" outfile=/scratch/kocevski/192296/ltcube_562809601_563068801_4FGL_J0211.2+1051_daily_bin1248.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/192296/ft2_4FGL_J0211.2+1051_daily_bin1248.fits
.....................!
real 24.32
user 14.89
sys 9.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192296/ft1_filtered_4FGL_J0211.2+1051_daily_bin1248.fits evtable="EVENTS" scfile=/scratch/kocevski/192296/ft2_4FGL_J0211.2+1051_daily_bin1248.fits sctable="SC_DATA" expcube=/scratch/kocevski/192296/ltcube_562809601_563068801_4FGL_J0211.2+1051_daily_bin1248.fits outfile=/scratch/kocevski/192296/expmap_562809601_563068801_4FGL_J0211.2+1051_daily_bin1248.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/192296/ltcube_562809601_563068801_4FGL_J0211.2+1051_daily_bin1248.fits
.....................!
real 202.28
user 186.54
sys 15.07

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J0211.2+1051 @ 32.8091 10.8569

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/192296/ft1_filtered_4FGL_J0211.2+1051_daily_bin1248.fits scfile=/scratch/kocevski/192296/ft2_4FGL_J0211.2+1051_daily_bin1248.fits outfile=/scratch/kocevski/192296/cmap_562809601_563068801_4FGL_J0211.2+1051_daily_bin1248.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=32.8091 yref=10.8569 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 8.39
user 0.39
sys 7.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192296/ft1_filtered_4FGL_J0211.2+1051_daily_bin1248.fits scfile=/scratch/kocevski/192296/ft2_4FGL_J0211.2+1051_daily_bin1248.fits outfile=/scratch/kocevski/192296/cmap_HighResolution_562809601_563068801_4FGL_J0211.2+1051_daily_bin1248.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=32.8091 yref=10.8569 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 8.35
user 0.39
sys 7.92

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/192296/ft1_filtered_4FGL_J0211.2+1051_daily_bin1248.fits evtable="EVENTS" scfile=/scratch/kocevski/192296/ft2_4FGL_J0211.2+1051_daily_bin1248.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/192296/Model_4FGL_J0211.2+1051_daily_bin1248.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/192296/ft1_filtered_4FGL_J0211.2+1051_daily_bin1248.fits......................!
real 27.12
user 15.29
sys 11.65

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/192296/ft1_filtered_4FGL_J0211.2+1051_daily_bin1248.fits', '/scratch/kocevski/192296/ft2_4FGL_J0211.2+1051_daily_bin1248.fits', expMap='/scratch/kocevski/192296/expmap_562809601_563068801_4FGL_J0211.2+1051_daily_bin1248.fits', expCube='/scratch/kocevski/192296/ltcube_562809601_563068801_4FGL_J0211.2+1051_daily_bin1248.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/192296/Model_4FGL_J0211.2+1051_daily_bin1248.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0211.2+1051'

4FGL J0211.2+1051
   Spectrum: LogParabola
244         norm:  8.760e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.051e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
246         beta:  5.238e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
247           Eb:  8.380e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/192296/ft1_filtered_4FGL_J0211.2+1051_daily_bin1248.fits
Spacecraft file(s): /scratch/kocevski/192296/ft2_4FGL_J0211.2+1051_daily_bin1248.fits
Exposure map: /scratch/kocevski/192296/expmap_562809601_563068801_4FGL_J0211.2+1051_daily_bin1248.fits
Exposure cube: /scratch/kocevski/192296/ltcube_562809601_563068801_4FGL_J0211.2+1051_daily_bin1248.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/192296/Model_4FGL_J0211.2+1051_daily_bin1248.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) = 292.115664074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    216.56       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .53566E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18328E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .60557E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0054       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.5402       1.0000         .10000E-03   10000.    
     9 'Prefactor '    224.08       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4285       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12174E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9863       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4308       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8995       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11614       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9562       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7400       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1974       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6150       1.0000         .10000E-03   10000.    
    20 'norm      '    2.4388       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1966       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.1829       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5180       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0817       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71746E-06   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   287.5398     FROM MIGRAD    STATUS=CONVERGED    195 CALLS      496 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3790        .90712E-02** at limit **
   2  norm          216.59        152.51        .68701E-03    .56033E-03
   3  Prefactor     .10000E-03    59.821        .92875E-02** at limit **
   4  Prefactor     .10000E-03    73.256        .91143E-02** at limit **
   5  norm          .10000E-03    37.014        .93215E-02** at limit **
   6  Prefactor     .11802E-01    7902.9        .13435E-01    .71885E-03
   7  Prefactor     .10000E-03    9.8749        .90712E-02** at limit **
   8  norm          5.5536        3.3918        .42673E-02   -.17189E-01
   9  Prefactor     218.87        223.29        .67565E-03   -.13235E-02
  10  Prefactor     9.4285        1.0014         .0000         .0000    
  11  Prefactor     .10000E-03    .20571       -.60396E-03** at limit **
  12  Prefactor     .11579E-03    .35995E-01    .23876E-02** at limit **
  13  Prefactor     .10706E-03    .57187E-01   -.21016E-01** at limit **
  14  Prefactor     .10000E-03    .88980E-01    .44863E-04** at limit **
  15  Prefactor     .10000E-03    .22982       -.49659E-05** at limit **
  16  Prefactor     1.9562        1.0371         .0000         .0000    
  17  norm          1.7400        1.0487         .0000         .0000    
  18  Prefactor     2.3661        .87126       -.30136E-02    .17081E-02
  19  Prefactor     .10000E-03    .17346        .42862E-05** at limit **
  20  norm          .10000E-03    .10725       -.43270E-03** at limit **
  21  Prefactor     3.1966        1.0128         .0000         .0000    
  22  Prefactor     6.1829        1.0033         .0000         .0000    
  23  Prefactor     2.5180        1.0212         .0000         .0000    
  24  Normalizat    1.0838        1.1706        .15755E-03   -.13573E-03
  25  Prefactor     .20214E-10    .25728       -.24829E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 216.587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0118017
  Prefactor  = 0.0001
  norm       = 5.5536
  Prefactor  = 218.867
  Prefactor  = 9.42854
  Prefactor  = 0.0001
  Prefactor  = 0.000115792
  Prefactor  = 0.000107063
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.95624
  norm       = 1.74003
  Prefactor  = 2.36615
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 3.19661
  Prefactor  = 6.1829
  Prefactor  = 2.51803
  Normalizat = 1.08382
  Prefactor  = 2.02144e-11
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   287.5398     FROM HESSE     STATUS=FAILED        29 CALLS      525 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3790        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          216.59        152.51        .68701E-03   -1.2754    
   3  Prefactor     .10000E-03    59.821        .92875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    73.256        .91143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    37.014        .93215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11802E-01    7902.9        .13435E-01   -1.5686    
   7  Prefactor     .10000E-03    9.8749        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.5536        3.3918        .42673E-02   -1.5237    
   9  Prefactor     218.87        223.29        .67565E-03   -1.2738    
  10  Prefactor     494.68        485.22         .0000       -1.5094    
  11  Prefactor     .10000E-03    .20571       -.60396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11579E-03    .35995E-01    .23876E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10706E-03    .57187E-01   -.21016E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .88980E-01    .44863E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .22982       -.49659E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9562        1.0371         .0000       -1.5428    
  17  norm          1.7400        1.0487         .0000       -1.5444    
  18  Prefactor     2.3661        .87126       -.30136E-02   -1.5400    
  19  Prefactor     .10000E-03    .17346        .42862E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .10725       -.43270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.1966        1.0128         .0000       -1.5350    
  22  Prefactor     6.1829        1.0033         .0000       -1.5211    
  23  Prefactor     2.5180        1.0212         .0000       -1.5391    
  24  Normalizat    1.0838        1.1706        .15755E-03   -.90273    
  25  Prefactor     .20214E-10    .25728       -.24829E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.24414e-10
Minuit parameter uncertainties:
  1  3.70985e-05
  2  152.786
  3  0.000153078
  4  0.000126786
  5  6.95009e-05
  6  18.7663
  7  3.61407e-05
  8  3.39196
  9  224.161
  10  1.00141
  11  1.72362e-05
  12  0.00150787
  13  0.00127107
  14  2.72297e-05
  15  5.68949e-06
  16  1.0371
  17  1.04876
  18  0.871269
  19  3.62618e-06
  20  2.73201e-05
  21  1.01279
  22  1.00331
  23  1.02121
  24  1.20051
  25  4.58084e-06
Done.

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

Extracting fit parameters...

4FGL J0211.2+1051
   Spectrum: LogParabola
244         norm:  1.000e-04  6.950e-05  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.051e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
246         beta:  5.238e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
247           Eb:  8.380e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  2.021e-11  4.581e-06  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.084e+00  1.201e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 32.809 10.857
Photon Flux Upper Limit: 1.46e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.98e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/192296/likelihoodResults_562809601_563068801_4FGL_J0211.2+1051_daily_bin1248.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) = 287.539934758
delta logL = -0.000125283357704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 287.539811497
delta logL = -2.02292636686e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10335E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1436       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .19854E-06   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+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=   287.5398     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      275 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6418.3        .68124E-02** at limit **
   2  alpha         1.7423        3.2682        .17209       -.12428E-08
   3  Normalizat    1.0838        .17001        .20779E-03   -.77179E-05
   4  Prefactor     .38858E-14    .11020        .63933E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.74231
  Normalizat = 1.08383
  Prefactor  = 3.88578e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   287.5398     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    39.039        .10357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7423        3.2456        .68837E-02   -.30792    
   3  Normalizat    1.0838        .38684        .41558E-04   -.90273    
   4  Prefactor     .38858E-14    .56454        .12787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12133e-12
Minuit parameter uncertainties:
  1  9.90107e-06
  2  810.266
  3  0.387851
  4  9.56853e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192296': 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) = 287.539809405
delta logL = 6.89587409397e-08

Extracting fit parameters...

4FGL J0211.2+1051
   Spectrum: LogParabola
244         norm:  1.000e-04  9.901e-06  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  1.742e+00  8.103e+02  0.000e+00  5.000e+00 ( 1.000e+00)
246         beta:  5.238e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
247           Eb:  8.380e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  3.886e-15  9.569e-08  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.084e+00  3.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 32.809 10.857

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/192296/cmap_HighResolution_562809601_563068801_4FGL_J0211.2+1051_daily_bin1248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-04', job_status='DONE', photon_flux_upper_limit='1.46e-06', time_completed='2021-08-15 11:25:49.533572', job_id='192296', GAL2='0.00', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1629051949.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='6.90e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1248' AND source_name='4FGL J0211.2+1051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 11:25:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0014>
Subject: Job 192296: <4FGL_J0211.2+1051_daily_bin1248> in cluster <slac> Done

Job <4FGL_J0211.2+1051_daily_bin1248> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 15 11:10:37 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 11:13:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 11:13:27 2021
Terminated at Sun Aug 15 11:25:51 2021
Results reported at Sun Aug 15 11:25:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0211.2+1051_daily_bin1248 32.8091 10.8569 562809601 563068801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0211.2+1051 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   576.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             285.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            914 sec.

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

