/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 56 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 modul
WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7474
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0211.2+1051_daily_bin1744
RA = 32.8091, Dec = 10.8569
tmin = 691372801, tmax = 691632001
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='565578', job_status='RUN', time_executed='2022-12-02 00:08:08.902305', time_epoch_executed='1669968488.9' WHERE source_name='4FGL J0211.2+1051' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/565578

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/565578/ft1_4FGL_J0211.2+1051_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/565578/ft2_4FGL_J0211.2+1051_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/565578/ft1_4FGL_J0211.2+1051_daily_bin1744.fits outfile=/scratch/kocevski/565578/ft1_filteredMKT_4FGL_J0211.2+1051_daily_bin1744.fits ra=32.8091 dec=10.8569 rad=12.0 tmin=691372801.0 tmax=691632001.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 2.69
user 2.30
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/565578/ft2_4FGL_J0211.2+1051_daily_bin1744.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/565578/ft1_filteredMKT_4FGL_J0211.2+1051_daily_bin1744.fits evtable="EVENTS" outfile="/scratch/kocevski/565578/ft1_filtered_4FGL_J0211.2+1051_daily_bin1744.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.66
user 0.31
sys 0.17

Number of photons that the gtmktime cut: 150

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/565578/ft1_filtered_4FGL_J0211.2+1051_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/565578/ft2_4FGL_J0211.2+1051_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/565578/ltcube_691372801_691632001_4FGL_J0211.2+1051_daily_bin1744.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/565578/ft2_4FGL_J0211.2+1051_daily_bin1744.fits
.....................!
real 17.20
user 16.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/565578/ft1_filtered_4FGL_J0211.2+1051_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/565578/ft2_4FGL_J0211.2+1051_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/565578/ltcube_691372801_691632001_4FGL_J0211.2+1051_daily_bin1744.fits outfile=/scratch/kocevski/565578/expmap_691372801_691632001_4FGL_J0211.2+1051_daily_bin1744.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/565578/ltcube_691372801_691632001_4FGL_J0211.2+1051_daily_bin1744.fits
.....................!
real 192.09
user 186.27
sys 5.34

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/565578/ft1_filtered_4FGL_J0211.2+1051_daily_bin1744.fits scfile=/scratch/kocevski/565578/ft2_4FGL_J0211.2+1051_daily_bin1744.fits outfile=/scratch/kocevski/565578/cmap_691372801_691632001_4FGL_J0211.2+1051_daily_bin1744.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/565578/ft1_filtered_4FGL_J0211.2+1051_daily_bin1744.fits scfile=/scratch/kocevski/565578/ft2_4FGL_J0211.2+1051_daily_bin1744.fits outfile=/scratch/kocevski/565578/cmap_HighResolution_691372801_691632001_4FGL_J0211.2+1051_daily_bin1744.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.54
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/565578/ft1_filtered_4FGL_J0211.2+1051_daily_bin1744.fits', '/scratch/kocevski/565578/ft2_4FGL_J0211.2+1051_daily_bin1744.fits', expMap='/scratch/kocevski/565578/expmap_691372801_691632001_4FGL_J0211.2+1051_daily_bin1744.fits', expCube='/scratch/kocevski/565578/ltcube_691372801_691632001_4FGL_J0211.2+1051_daily_bin1744.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/565578/Model_4FGL_J0211.2+1051_daily_bin1744.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  0.000e+00  1.000e+06 ( 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 -5.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/565578/ft1_filtered_4FGL_J0211.2+1051_daily_bin1744.fits
Spacecraft file(s): /scratch/kocevski/565578/ft2_4FGL_J0211.2+1051_daily_bin1744.fits
Exposure map: /scratch/kocevski/565578/expmap_691372801_691632001_4FGL_J0211.2+1051_daily_bin1744.fits
Exposure cube: /scratch/kocevski/565578/ltcube_691372801_691632001_4FGL_J0211.2+1051_daily_bin1744.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/565578/Model_4FGL_J0211.2+1051_daily_bin1744.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) = 1722.51791732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1467       1.0000          .0000       .10000E+07
     2 'norm      '    78.278       1.0000          .0000       .10000E+07
     3 'Prefactor '    .23481E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    16.005       1.0000          .0000       .10000E+07
     5 'norm      '    26.781       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14994E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    20.808       1.0000          .0000       .10000E+07
     8 'norm      '    .25535E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    104.93       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11657E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .21028E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .13395E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .35527E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .37914E-07   1.0000          .0000       .10000E+07
    15 'norm      '    .50515E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    .18857E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.7966       1.0000          .0000       .10000E+07
    18 'norm      '    80.135       1.0000          .0000       .10000E+07
    19 'Prefactor '    .23315E-08   1.0000          .0000       .10000E+07
    20 'Prefactor '    .64620E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .53790E-07   1.0000          .0000       .10000E+07
    22 'Normalizat'    .96161       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .55130       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=   1722.517     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     2966 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1483        8.5069        .27353E-07   -.12994E-03
   2  norm          78.285        1.0767       -.49037E-09   -.27726E-02
   3  Prefactor     .55511E-10    14.076       -.11928E-06** at limit **
   4  Prefactor     16.006        7.8948       -.59443E-07   -.38575E-03
   5  norm          26.781        15.126        .23813E-07   -.39255E-03
   6  Prefactor     .62316E-05    15.330        .36335E-06** at limit **
   7  Prefactor     20.807        10.092        .15554E-06   -.52818E-03
   8  norm           .0000        .82360       -.49737E-07** at limit **
   9  Prefactor     104.88        1.1177        .39943E-08   -.24564E-02
  10  Prefactor     .87872E-05    35.542        .73350E-06** at limit **
  11  Prefactor     .39007E-04    57.208       -.47810E-06** at limit **
  12  Prefactor     .11102E-09    17.591        .42672E-06** at limit **
  13  Prefactor     .10677E-04    19.177        .16565E-06** at limit **
  14  Prefactor      .0000        12.194        .62177E-07** at limit **
  15  norm           .0000        .61692        .26095E-08** at limit **
  16  Prefactor     .14960E-04    49.549       -.43859E-06** at limit **
  17  Prefactor     5.7963        1.2366        .11090E-07    .11837E-02
  18  norm          80.043        3.3163        .11199E-07    .14267E-01
  19  Prefactor     .73830E-08    33.586       -.92845E-07** at limit **
  20  Prefactor     .63841E-05    211.82       -.12726E-05** at limit **
  21  Prefactor     .11232E-04    41.887       -.31459E-06** at limit **
  22  Normalizat    .96143        .37366       -.39422E-05   -.45945E-04
  23  Prefactor     .55132        .21505        .24843E-04   -.74621E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.14834
  norm       = 78.2851
  Prefactor  = 5.55112e-11
  Prefactor  = 16.0057
  norm       = 26.7806
  Prefactor  = 6.23157e-06
  Prefactor  = 20.8073
  norm       = 0
  Prefactor  = 104.884
  Prefactor  = 8.78719e-06
  Prefactor  = 3.90066e-05
  Prefactor  = 1.11022e-10
  Prefactor  = 1.06774e-05
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.496e-05
  Prefactor  = 5.79629
  norm       = 80.0427
  Prefactor  = 7.38298e-09
  Prefactor  = 6.38406e-06
  Prefactor  = 1.12316e-05
  Normalizat = 0.961428
  Prefactor  = 0.551321
 **********
 **   18 **HESSE 
 **********

 FCN=   1722.517     FROM HESSE     STATUS=OK           406 CALLS     3372 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1483        8.4905        .40470E-03   -1.5658    
   2  norm          78.285        47.645        .11303E-03   -1.5531    
   3  Prefactor     .55511E-10    14.068        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.006        7.9019        .25008E-03   -1.5628    
   5  norm          26.781        15.139        .19327E-03   -1.5604    
   6  Prefactor     .62316E-05    53.235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.807        11.053        .21929E-03   -1.5617    
   8  norm           .0000        .82227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     104.88        115.09        .97631E-04   -1.5503    
  10  Prefactor     .87872E-05    47.330        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .39007E-04    113.35        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11102E-09    17.579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10677E-04    54.744        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        12.208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .61646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14960E-04    99.540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7963        115.79        .41692E-03   -1.5660    
  18  norm          80.043        55.918        .11172E-03   -1.5529    
  19  Prefactor     .73830E-08    33.594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .63841E-05    217.61        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11232E-04    65.903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .96143        .34587        .45684E-01   -.94334    
  23  Prefactor     .55132        .19886        .40386E-01   -1.0968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20182e-06
Minuit parameter uncertainties:
  1  8.49056
  2  47.6457
  3  3.98677e-05
  4  7.90188
  5  15.1387
  6  0.0364277
  7  11.0535
  8  7.10898e-07
  9  115.095
  10  0.0407876
  11  0.13299
  12  8.4582e-05
  13  0.0483545
  14  3.92269e-06
  15  2.90919e-07
  16  0.0771794
  17  51.8145
  18  55.9186
  19  0.000994502
  20  0.0745485
  21  0.0544138
  22  0.346674
  23  0.199109
Done.

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

Extracting fit parameters...

4FGL J0211.2+1051
   Spectrum: LogParabola
244         norm:  2.678e+01  1.514e+01  0.000e+00  1.000e+06 ( 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 -5.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:  5.513e-01  1.991e-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:  9.614e-01  3.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.83
Ra Dec: 32.809 10.857
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.78e-07 +/- 1.00e-07
Energy Flux (Fixed Index): 9.71e-05 +/- 5.49e-05

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) = 1722.44449439
delta logL = 0.072791999896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1722.44353181
delta logL = 0.0737545754191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.780       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8549       1.0000          .0000       5.0000    
     3 'Normalizat'    .97907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54736       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=   1722.443     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      197 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.614        15.576        .19327E-03    .12795E-02
   2  alpha         1.8540        .48463        .18750       -.12791E-04
   3  Normalizat    .97934        .33227        .45904E-01   -.16786E-04
   4  Prefactor     .54740        .19654        .40331E-01   -.43603E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 26.6136
  alpha      = 1.85395
  Normalizat = 0.979342
  Prefactor  = 0.547404
 **********
 **   18 **HESSE 
 **********

 FCN=   1722.443     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.614        15.445        .77310E-05   -1.5605    
   2  alpha         1.8540        .50281        .78966E-02   -.26138    
   3  Normalizat    .97934        .36162        .28571E-03   -.93726    
   4  Prefactor     .54740        .21418        .22073E-03   -1.0985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00522e-11
Minuit parameter uncertainties:
  1  15.4448
  2  0.506513
  3  0.362531
  4  0.2145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/565578': 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) = 1722.44347386
delta logL = 0.0738125294617

Extracting fit parameters...

4FGL J0211.2+1051
   Spectrum: LogParabola
244         norm:  2.661e+01  1.544e+01  0.000e+00  1.000e+06 ( 1.000e-12)
245        alpha:  1.854e+00  5.065e-01  0.000e+00  5.000e+00 ( 1.000e+00)
246         beta:  5.238e-02  0.000e+00 -5.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:  5.474e-01  2.145e-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:  9.793e-01  3.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.06
Ra Dec: 32.809 10.857
Photon Index (Free Index): 1.85 +/- 0.51
Photon Flux (Free Index): 1.43e-07 +/- 1.17e-07
Energy Flux (Free Index): 1.18e-04 +/- 9.70e-05

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/565578/cmap_HighResolution_691372801_691632001_4FGL_J0211.2+1051_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.78e-07', energy_flux2='1.18e-04', photon_flux_error='1.00e-07', dlogl='7.38e-02', energy_flux='9.71e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2022-12-02 00:14:53.321107', photon_index_error2='0.51', photon_index2='1.85', ts='12.83', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', energy_flux_error2='9.70e-05', EG='0.96', time_epoch_completed='1669968893.32', return_code='0', job_id='565578', GAL2='0.55', EG2='0.98', return_code2='0', energy_flux_error='5.49e-05', photon_flux_error2='1.17e-07', ts2='13.06', photon_index='2.05' WHERE bin_id='1744' AND source_name='4FGL J0211.2+1051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 00:14:53 PST 2022

', photon_index='2.05' WHERE bin_id='1744' AND source_name='4FGL J0211.2+1051' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 00:14:48 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0130>
Subject: Job 565577: <4FGL_J0211.2+1051_daily_bin1744> in cluster <slac> Done

Job <4FGL_J0211.2+1051_daily_bin1744> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Dec  2 00:05:55 2022
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:06:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:06:09 2022
Terminated at Fri Dec  2 00:14:49 2022
Results reported at Fri Dec  2 00:14:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0211.2+1051_daily_bin1744 32.8091 10.8569 691372801 691632001 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 :                                   400.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   519 sec.
    Turnaround time :                            534 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 565578: <4FGL_J0211.2+1051_daily_bin1744> in cluster <slac> Done

Job <4FGL_J0211.2+1051_daily_bin1744> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec  2 00:05:55 2022
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:06:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:06:09 2022
Terminated at Fri Dec  2 00:14:54 2022
Results reported at Fri Dec  2 00:14:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0211.2+1051_daily_bin1744 32.8091 10.8569 691372801 691632001 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 :                                   404.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   524 sec.
    Turnaround time :                            539 sec.

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

