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


Performing analysis on: 4FGL_J0211.2+1051_daily_bin1426
RA = 32.8091, Dec = 10.8569
tmin = 608947201, tmax = 609206401
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='194002', job_status='RUN', time_executed='2021-08-15 11:19:14.790790', time_epoch_executed='1629051554.79' WHERE source_name='4FGL J0211.2+1051' and cadence='daily' and bin_id='1426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194002

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194002/ft1_4FGL_J0211.2+1051_daily_bin1426.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194002/ft2_4FGL_J0211.2+1051_daily_bin1426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194002/ft1_4FGL_J0211.2+1051_daily_bin1426.fits outfile=/scratch/kocevski/194002/ft1_filteredMKT_4FGL_J0211.2+1051_daily_bin1426.fits ra=32.8091 dec=10.8569 rad=12.0 tmin=608947201.0 tmax=609206401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.41
user 2.92
sys 1.47

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/194002/ft2_4FGL_J0211.2+1051_daily_bin1426.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/194002/ft1_filteredMKT_4FGL_J0211.2+1051_daily_bin1426.fits evtable="EVENTS" outfile="/scratch/kocevski/194002/ft1_filtered_4FGL_J0211.2+1051_daily_bin1426.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 1.77
user 0.33
sys 1.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194002/ft1_filtered_4FGL_J0211.2+1051_daily_bin1426.fits" evtable="EVENTS" scfile=/scratch/kocevski/194002/ft2_4FGL_J0211.2+1051_daily_bin1426.fits sctable="SC_DATA" outfile=/scratch/kocevski/194002/ltcube_608947201_609206401_4FGL_J0211.2+1051_daily_bin1426.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/194002/ft2_4FGL_J0211.2+1051_daily_bin1426.fits
.....................!
real 16.67
user 14.85
sys 1.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194002/ft1_filtered_4FGL_J0211.2+1051_daily_bin1426.fits evtable="EVENTS" scfile=/scratch/kocevski/194002/ft2_4FGL_J0211.2+1051_daily_bin1426.fits sctable="SC_DATA" expcube=/scratch/kocevski/194002/ltcube_608947201_609206401_4FGL_J0211.2+1051_daily_bin1426.fits outfile=/scratch/kocevski/194002/expmap_608947201_609206401_4FGL_J0211.2+1051_daily_bin1426.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/194002/ltcube_608947201_609206401_4FGL_J0211.2+1051_daily_bin1426.fits
.....................!
real 193.76
user 186.96
sys 6.37

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/194002/ft1_filtered_4FGL_J0211.2+1051_daily_bin1426.fits scfile=/scratch/kocevski/194002/ft2_4FGL_J0211.2+1051_daily_bin1426.fits outfile=/scratch/kocevski/194002/cmap_608947201_609206401_4FGL_J0211.2+1051_daily_bin1426.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 1.81
user 0.39
sys 1.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194002/ft1_filtered_4FGL_J0211.2+1051_daily_bin1426.fits scfile=/scratch/kocevski/194002/ft2_4FGL_J0211.2+1051_daily_bin1426.fits outfile=/scratch/kocevski/194002/cmap_HighResolution_608947201_609206401_4FGL_J0211.2+1051_daily_bin1426.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 1.81
user 0.37
sys 1.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .12214       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7625       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9999.1       1.0000         .10000E-03   10000.    
     5 'norm      '    98.304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .78068E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.3758       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .58937E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .75099E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .64806       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13029E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    61.632       1.0000         .10000E-03   10000.    
    17 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    241.83       1.0000         .10000E-03   10000.    
    20 'norm      '    .10991E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .49688E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .71917E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.160       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82290       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   542.2414     FROM MIGRAD    STATUS=CONVERGED    248 CALLS     2513 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.861        .17731E-04** at limit **
   2  norm          .10002E-03    264.69       -.12544E-03** at limit **
   3  Prefactor     .10346E-03    496.34       -.47518E-04** at limit **
   4  Prefactor    10000.0        1059.2       -.14488E-04** at limit **
   5  norm          96.280        39.282        .70501E-05   -.81227E-02
   6  Prefactor     .90201E-03    25.706       -.18722E-05** at limit **
   7  Prefactor     .10000E-03    18.843        .54485E-05** at limit **
   8  norm          8.3979        4.8383       -.41362E-05    .85446E-03
   9  Prefactor     .10001E-03    139.52        .93871E-04** at limit **
  10  Prefactor     .10019E-03    328.68       -.15182E-03** at limit **
  11  Prefactor     .10000E-03    50.831       -.13806E-04** at limit **
  12  Prefactor     .10000E-03    206.07        .12579E-04** at limit **
  13  Prefactor     .10000E-03    30.177        .17307E-04** at limit **
  14  Prefactor     .10000E-03    61.288        .25439E-04** at limit **
  15  Prefactor     .10000E-03    19.513       -.36222E-05** at limit **
  16  Prefactor     69.542        71.902        .21098E-04    .66986E-03
  17  norm          .10000E-03    2.0120       -.62528E-05** at limit **
  18  Prefactor     .10000E-03    107.43       -.39325E-04** at limit **
  19  Prefactor     235.89        106.18        .13672E-04    .31459E-02
  20  norm          .10000E-03    17.501       -.17412E-04** at limit **
  21  Prefactor     .10000E-03    44.967       -.19236E-05** at limit **
  22  Prefactor     .10001E-03    85.827        .50868E-04** at limit **
  23  Prefactor     32.568        85.588        .63754E-05    .19733E-03
  24  Normalizat    .10000E-01    .83664        .10777E-03** at limit **
  25  Prefactor     .82561        .27261       -.78747E-04    .27696E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.00010002
  Prefactor  = 0.00010346
  Prefactor  = 10000
  norm       = 96.2795
  Prefactor  = 0.00090201
  Prefactor  = 0.0001
  norm       = 8.39788
  Prefactor  = 0.000100005
  Prefactor  = 0.000100188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 69.5416
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 235.894
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 32.5685
  Normalizat = 0.01
  Prefactor  = 0.825607
 **********
 **   18 **HESSE 
 **********

 FCN=   542.2414     FROM HESSE     STATUS=OK           461 CALLS     2974 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.894        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10002E-03    265.09        .96163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10346E-03    499.51        .78894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        1057.7        .12722E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          96.280        123.80        .10136E-02   -1.3742    
   6  Prefactor     .90201E-03    820.66        .94061E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.889        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.3979        4.8244        .34630E-02   -1.5128    
   9  Prefactor     .10001E-03    138.39        .94833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10019E-03    329.01        .15803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.032        .10470E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    206.28        .11861E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.240        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    60.978        .10289E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.526        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     69.542        72.009        .12778E-02   -1.4038    
  17  norm          .10000E-03    2.0126        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    107.10        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     235.89        112.63        .65097E-03   -1.2624    
  20  norm          .10000E-03    17.493        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    45.240        .10580E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    86.782        .93279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.568        85.810        .16221E-02   -1.4566    
  24  Normalizat    .10000E-01    .71907        .22291       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .82561        .28898        .44014E-01   -.98791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0826e-06
Minuit parameter uncertainties:
  1  0.000292614
  2  0.0046058
  3  0.0838486
  4  0.0580398
  5  124.131
  6  1.64562
  7  6.57561e-05
  8  4.82463
  9  0.00174718
  10  0.0158013
  11  0.00022592
  12  0.000308476
  13  0.000227273
  14  0.000413125
  15  1.91874e-05
  16  72.0996
  17  2.77608e-05
  18  0.000627509
  19  112.729
  20  0.000176009
  21  5.83335e-05
  22  0.0015716
  23  86.138
  24  1.04681e-05
  25  0.289516
Done.

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

Extracting fit parameters...

4FGL J0211.2+1051
   Spectrum: LogParabola
244         norm:  9.628e+01  1.241e+02  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:  8.256e-01  2.895e-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:  1.000e-02  1.047e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 32.809 10.857
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 6.39e-07 +/- 8.23e-07
Energy Flux (Fixed Index): 3.49e-04 +/- 4.50e-04

TS (Fixed Index): 1.43
Ra Dec: 32.809 10.857
Photon Flux Upper Limit: 3.64e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/194002/likelihoodResults_608947201_609206401_4FGL_J0211.2+1051_daily_bin1426.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) = 542.233218473
delta logL = 0.0081756129988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 542.232624893
delta logL = 0.00876919273264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    91.981       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2112       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82479       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=   542.2326     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      220 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          91.981        186.10        .10475E-02   -.46928E-03
   2  alpha         2.2111        1.6163        .23763       -.91952E-06
   3  Normalizat    .10000E-01    .70030        .22280    ** at limit **
   4  Prefactor     .82475        .26398        .44039E-01   -.48822E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 91.981
  alpha      = 2.21108
  Normalizat = 0.01
  Prefactor  = 0.824746
 **********
 **   18 **HESSE 
 **********

 FCN=   542.2326     FROM HESSE     STATUS=OK            29 CALLS      249 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          91.981        126.01        .20950E-03   -1.3787    
   2  alpha         2.2111        1.1828        .10120E-01   -.11582    
   3  Normalizat    .10000E-01    .82400        .10928E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .82475        .23702        .19548E-03   -.98823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78749e-09
Minuit parameter uncertainties:
  1  126.375
  2  1.23279
  3  1.68743e-06
  4  0.23731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194002': 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) = 542.232624836
delta logL = 0.00876924964348

Extracting fit parameters...

4FGL J0211.2+1051
   Spectrum: LogParabola
244         norm:  9.198e+01  1.264e+02  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.211e+00  1.233e+00  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:  8.247e-01  2.373e-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:  1.000e-02  1.687e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 32.809 10.857
Photon Index (Free Index): 2.21 +/- 1.23
Photon Flux (Free Index): 7.41e-07 +/- 1.23e-06
Energy Flux (Free Index): 3.10e-04 +/- 4.64e-04

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/194002/cmap_HighResolution_608947201_609206401_4FGL_J0211.2+1051_daily_bin1426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.99e-03', comment='SUCCESS', photon_flux='6.39e-07', energy_flux2='3.10e-04', photon_flux_error='8.23e-07', dlogl='8.77e-03', energy_flux='3.49e-04', photon_flux2='7.41e-07', job_status='DONE', time_completed='2021-08-15 11:29:15.639826', photon_index_error2='1.23', photon_index2='2.21', ts='1.43', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='3.64e-06', energy_flux_error2='4.64e-04', EG='0.01', time_epoch_completed='1629052155.64', return_code='0', job_id='194002', GAL2='0.82', EG2='0.01', return_code2='0', energy_flux_error='4.50e-04', photon_flux_error2='1.23e-06', ts2='1.45', photon_index='2.05' WHERE bin_id='1426' AND source_name='4FGL J0211.2+1051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 11:29:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 194002: <4FGL_J0211.2+1051_daily_bin1426> in cluster <slac> Done

Job <4FGL_J0211.2+1051_daily_bin1426> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 11:15:32 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 11:16:21 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:16:21 2021
Terminated at Sun Aug 15 11:29:16 2021
Results reported at Sun Aug 15 11:29:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0211.2+1051_daily_bin1426 32.8091 10.8569 608947201 609206401 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 :                                   393.00 sec.
    Max Memory :                                 1131 MB
    Average Memory :                             168.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            824 sec.

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

