/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 111 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0211.2+1051_daily_bin98
RA = 32.8091, Dec = 10.8569
tmin = 264729601, tmax = 264988801
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='185144', job_status='RUN', time_executed='2021-08-15 10:53:39.118907', time_epoch_executed='1629050019.12' WHERE source_name='4FGL J0211.2+1051' and cadence='daily' and bin_id='98'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/185144

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/185144/ft1_4FGL_J0211.2+1051_daily_bin98.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/185144/ft2_4FGL_J0211.2+1051_daily_bin98.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/185144/ft1_4FGL_J0211.2+1051_daily_bin98.fits outfile=/scratch/kocevski/185144/ft1_filteredMKT_4FGL_J0211.2+1051_daily_bin98.fits ra=32.8091 dec=10.8569 rad=12.0 tmin=264729601.0 tmax=264988801.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 1.82
user 1.27
sys 0.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/185144/ft2_4FGL_J0211.2+1051_daily_bin98.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/185144/ft1_filteredMKT_4FGL_J0211.2+1051_daily_bin98.fits evtable="EVENTS" outfile="/scratch/kocevski/185144/ft1_filtered_4FGL_J0211.2+1051_daily_bin98.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.88
user 0.35
sys 0.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/185144/ft1_filtered_4FGL_J0211.2+1051_daily_bin98.fits" evtable="EVENTS" scfile=/scratch/kocevski/185144/ft2_4FGL_J0211.2+1051_daily_bin98.fits sctable="SC_DATA" outfile=/scratch/kocevski/185144/ltcube_264729601_264988801_4FGL_J0211.2+1051_daily_bin98.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/185144/ft2_4FGL_J0211.2+1051_daily_bin98.fits
.....................!
real 15.54
user 14.78
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/185144/ft1_filtered_4FGL_J0211.2+1051_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/185144/ft2_4FGL_J0211.2+1051_daily_bin98.fits sctable="SC_DATA" expcube=/scratch/kocevski/185144/ltcube_264729601_264988801_4FGL_J0211.2+1051_daily_bin98.fits outfile=/scratch/kocevski/185144/expmap_264729601_264988801_4FGL_J0211.2+1051_daily_bin98.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/185144/ltcube_264729601_264988801_4FGL_J0211.2+1051_daily_bin98.fits
.....................!
real 192.70
user 186.50
sys 5.75

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/185144/ft1_filtered_4FGL_J0211.2+1051_daily_bin98.fits scfile=/scratch/kocevski/185144/ft2_4FGL_J0211.2+1051_daily_bin98.fits outfile=/scratch/kocevski/185144/cmap_264729601_264988801_4FGL_J0211.2+1051_daily_bin98.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 0.87
user 0.39
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/185144/ft1_filtered_4FGL_J0211.2+1051_daily_bin98.fits scfile=/scratch/kocevski/185144/ft2_4FGL_J0211.2+1051_daily_bin98.fits outfile=/scratch/kocevski/185144/cmap_HighResolution_264729601_264988801_4FGL_J0211.2+1051_daily_bin98.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 0.88
user 0.40
sys 0.47

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/185144/ft1_filtered_4FGL_J0211.2+1051_daily_bin98.fits', '/scratch/kocevski/185144/ft2_4FGL_J0211.2+1051_daily_bin98.fits', expMap='/scratch/kocevski/185144/expmap_264729601_264988801_4FGL_J0211.2+1051_daily_bin98.fits', expCube='/scratch/kocevski/185144/ltcube_264729601_264988801_4FGL_J0211.2+1051_daily_bin98.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/185144/Model_4FGL_J0211.2+1051_daily_bin98.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/185144/ft1_filtered_4FGL_J0211.2+1051_daily_bin98.fits
Spacecraft file(s): /scratch/kocevski/185144/ft2_4FGL_J0211.2+1051_daily_bin98.fits
Exposure map: /scratch/kocevski/185144/expmap_264729601_264988801_4FGL_J0211.2+1051_daily_bin98.fits
Exposure cube: /scratch/kocevski/185144/ltcube_264729601_264988801_4FGL_J0211.2+1051_daily_bin98.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/185144/Model_4FGL_J0211.2+1051_daily_bin98.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) = 6583.96523522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.513       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12200E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.4622       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1850       1.0000         .10000E-03   10000.    
     8 'norm      '    .95276       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    132.13       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16289E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15676E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4080       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    120.84       1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.657       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.503       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.137       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69681       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1085       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.

 FCN=   6583.918     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3022 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9826       -.92894E-07** at limit **
   2  norm          15.512        11.214       -.67698E-07    .11619E-04
   3  Prefactor     .10000E-03    2.3633       -.90248E-07** at limit **
   4  Prefactor     .10003E-03    1.3152       -.72442E-06** at limit **
   5  norm          6.4646        5.0347        .17372E-06    .12197E-04
   6  Prefactor     .10000E-03    12.973        .91833E-07** at limit **
   7  Prefactor     2.1854        2.2895       -.13828E-08    .46951E-05
   8  norm          .95249        .77776       -.83165E-07   -.83981E-04
   9  Prefactor     .10000E-03    7.6155       -.10654E-06** at limit **
  10  Prefactor     132.14        50.734        .29326E-06   -.11145E-04
  11  Prefactor     .10002E-03    4.4430       -.35703E-06** at limit **
  12  Prefactor     .10000E-03    24.984        .48218E-06** at limit **
  13  Prefactor     .10000E-03    19.433        .90146E-05** at limit **
  14  Prefactor     .10000E-03    41.820       -.13522E-05** at limit **
  15  Prefactor     .10000E-03    3.8598       -.12201E-06** at limit **
  16  Prefactor     3.4226        10.187        .21054E-05   -.33859E-05
  17  norm          .10000E-03    .14696       -.25031E-06** at limit **
  18  Prefactor     120.94        75.273        .51445E-06   -.46471E-04
  19  Prefactor     43.667        21.671       -.28231E-06    .83866E-04
  20  norm          .10000E-03    6.7663       -.37370E-06** at limit **
  21  Prefactor     .10000E-03    14.227       -.92810E-06** at limit **
  22  Prefactor     24.497        52.234        .19686E-05   -.77982E-04
  23  Prefactor     12.148        28.160       -.77495E-06    .37611E-04
  24  Normalizat    .69701        .19705        .23666E-05    .80398E-04
  25  Prefactor     1.1086        .11899        .30421E-06   -.29358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.5122
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  norm       = 6.4646
  Prefactor  = 0.000100001
  Prefactor  = 2.18538
  norm       = 0.95249
  Prefactor  = 0.0001
  Prefactor  = 132.141
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.4226
  norm       = 0.0001
  Prefactor  = 120.943
  Prefactor  = 43.6674
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4971
  Prefactor  = 12.1482
  Normalizat = 0.697013
  Prefactor  = 1.1086
 **********
 **   18 **HESSE 
 **********

 FCN=   6583.918     FROM HESSE     STATUS=OK           437 CALLS     3459 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9935        .11158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.512        11.215        .10169E-03   -1.4920    
   3  Prefactor     .10000E-03    2.3743        .12183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    3.5342        .30378E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.4646        5.0263        .15362E-03   -1.5199    
   6  Prefactor     .10000E-03    13.378        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1854        2.2722        .11980E-03   -1.5412    
   8  norm          .95249        .76898        .62086E-04   -1.5513    
   9  Prefactor     .10000E-03    7.6220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     132.14        50.687        .35030E-04   -1.3404    
  11  Prefactor     .10002E-03    13.772        .32601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.408        .38690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    42.914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8743        .15571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4226        10.085        .21914E-03   -1.5338    
  17  norm          .10000E-03    .16679        .61170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     120.94        75.358        .18305E-03   -1.3504    
  19  Prefactor     43.667        21.684        .60675E-04   -1.4385    
  20  norm          .10000E-03    6.8081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.497        51.898        .80923E-04   -1.4718    
  23  Prefactor     12.148        28.133        .11498E-03   -1.5011    
  24  Normalizat    .69701        .21610        .35828E-03   -1.0401    
  25  Prefactor     1.1086        .13138        .17769E-03   -.89192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48984e-09
Minuit parameter uncertainties:
  1  1.18632e-05
  2  11.2167
  3  1.34082e-05
  4  0.000607514
  5  5.02665
  6  0.000259398
  7  2.27233
  8  0.768993
  9  1.22186e-05
  10  50.7041
  11  0.00106356
  12  0.000130659
  13  0.000319473
  14  1.60986e-05
  15  9.23828e-06
  16  10.0904
  17  8.81237e-06
  18  75.4183
  19  21.6879
  20  1.35793e-06
  21  2.06829e-06
  22  51.9933
  23  28.1638
  24  0.216361
  25  0.131415
Done.

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

Extracting fit parameters...

4FGL J0211.2+1051
   Spectrum: LogParabola
244         norm:  6.465e+00  5.027e+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

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.109e+00  1.314e-01  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:  6.970e-01  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.73
Ra Dec: 32.809 10.857
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 4.29e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 2.34e-05 +/- 1.82e-05

TS (Fixed Index): 2.73
Ra Dec: 32.809 10.857
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/185144/likelihoodResults_264729601_264988801_4FGL_J0211.2+1051_daily_bin98.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) = 6583.71334719
delta logL = 0.205124956588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6583.70657809
delta logL = 0.211894051102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3714       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4946       1.0000          .0000       5.0000    
     3 'Normalizat'    .67546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1152       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.

 FCN=   6583.707     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      263 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3737        92.556        .43350E-02    .10119E-02
   2  alpha         2.4950        3.5077        .29325        .15168E-03
   3  Normalizat    .67558        .10606        .82047E-01    .17045E-03
   4  Prefactor     1.1150        .49616E-01    .37037E-01   -.29815E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.37371
  alpha      = 2.49503
  Normalizat = 0.67558
  Prefactor  = 1.115
 **********
 **   18 **HESSE 
 **********

 FCN=   6583.707     FROM HESSE     STATUS=OK            31 CALLS      294 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3737        5.3214        .12718E-03   -1.5244    
   2  alpha         2.4950        .77253        .14428E-01   -.19899E-02
   3  Normalizat    .67558        .21190        .36335E-03   -1.0487    
   4  Prefactor     1.1150        .12931        .17721E-03   -.88989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01188e-09
Minuit parameter uncertainties:
  1  5.32185
  2  0.785386
  3  0.212161
  4  0.129345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/185144': 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) = 6583.7065761
delta logL = 0.21189604354

Extracting fit parameters...

4FGL J0211.2+1051
   Spectrum: LogParabola
244         norm:  5.374e+00  5.322e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.495e+00  7.854e-01  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:  1.115e+00  1.293e-01  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:  6.756e-01  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.14
Ra Dec: 32.809 10.857
Photon Index (Free Index): 2.50 +/- 0.79
Photon Flux (Free Index): 6.34e-08 +/- 5.21e-08
Energy Flux (Free Index): 1.87e-05 +/- 1.48e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/185144/cmap_HighResolution_264729601_264988801_4FGL_J0211.2+1051_daily_bin98.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-05', comment='SUCCESS', photon_flux='4.29e-08', energy_flux2='1.87e-05', photon_flux_error='3.33e-08', dlogl='2.12e-01', energy_flux='2.34e-05', photon_flux2='6.34e-08', job_status='DONE', time_completed='2021-08-15 11:06:28.491428', photon_index_error2='0.79', photon_index2='2.50', ts='2.73', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.48e-05', EG='0.70', time_epoch_completed='1629050788.49', return_code='0', job_id='185144', GAL2='1.11', EG2='0.68', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='5.21e-08', ts2='3.14', photon_index='2.05' WHERE bin_id='98' AND source_name='4FGL J0211.2+1051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 11:06:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 185144: <4FGL_J0211.2+1051_daily_bin98> in cluster <slac> Done

Job <4FGL_J0211.2+1051_daily_bin98> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 10:50:39 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 10:51:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 10:51:30 2021
Terminated at Sun Aug 15 11:06:29 2021
Results reported at Sun Aug 15 11:06:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0211.2+1051_daily_bin98 32.8091 10.8569 264729601 264988801 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 :                                   771.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            950 sec.

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

