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


Performing analysis on: 4FGL_J2211.2-1325_daily_bin1397
RA = 332.817, Dec = -13.4189
tmin = 601430401, tmax = 601689601
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='218406', job_status='RUN', time_executed='2021-09-28 06:52:16.435349', time_epoch_executed='1632837136.44' WHERE source_name='4FGL J2211.2-1325' and cadence='daily' and bin_id='1397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/218406

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/218406/ft1_4FGL_J2211.2-1325_daily_bin1397.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/218406/ft2_4FGL_J2211.2-1325_daily_bin1397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/218406/ft1_4FGL_J2211.2-1325_daily_bin1397.fits outfile=/scratch/kocevski/218406/ft1_filteredMKT_4FGL_J2211.2-1325_daily_bin1397.fits ra=332.817 dec=-13.4189 rad=12.0 tmin=601430401.0 tmax=601689601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.59
user 3.34
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/218406/ft2_4FGL_J2211.2-1325_daily_bin1397.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/218406/ft2_4FGL_J2211.2-1325_daily_bin1397.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/218406/ft1_filteredMKT_4FGL_J2211.2-1325_daily_bin1397.fits evtable="EVENTS" outfile="/scratch/kocevski/218406/ft1_filtered_4FGL_J2211.2-1325_daily_bin1397.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/218406/ft1_filtered_4FGL_J2211.2-1325_daily_bin1397.fits" evtable="EVENTS" scfile=/scratch/kocevski/218406/ft2_4FGL_J2211.2-1325_daily_bin1397.fits sctable="SC_DATA" outfile=/scratch/kocevski/218406/ltcube_601430401_601689601_4FGL_J2211.2-1325_daily_bin1397.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/218406/ft2_4FGL_J2211.2-1325_daily_bin1397.fits
.....................!
real 11.80
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/218406/ft1_filtered_4FGL_J2211.2-1325_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/218406/ft2_4FGL_J2211.2-1325_daily_bin1397.fits sctable="SC_DATA" expcube=/scratch/kocevski/218406/ltcube_601430401_601689601_4FGL_J2211.2-1325_daily_bin1397.fits outfile=/scratch/kocevski/218406/expmap_601430401_601689601_4FGL_J2211.2-1325_daily_bin1397.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/218406/ltcube_601430401_601689601_4FGL_J2211.2-1325_daily_bin1397.fits
.....................!
real 193.09
user 187.31
sys 5.41

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

Setting source of interest to:
4FGL J2211.2-1325 @ 332.817 -13.4189

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/218406/ft1_filtered_4FGL_J2211.2-1325_daily_bin1397.fits scfile=/scratch/kocevski/218406/ft2_4FGL_J2211.2-1325_daily_bin1397.fits outfile=/scratch/kocevski/218406/cmap_601430401_601689601_4FGL_J2211.2-1325_daily_bin1397.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=332.817 yref=-13.4189 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/218406/ft1_filtered_4FGL_J2211.2-1325_daily_bin1397.fits scfile=/scratch/kocevski/218406/ft2_4FGL_J2211.2-1325_daily_bin1397.fits outfile=/scratch/kocevski/218406/cmap_HighResolution_601430401_601689601_4FGL_J2211.2-1325_daily_bin1397.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=332.817 yref=-13.4189 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/218406/ft1_filtered_4FGL_J2211.2-1325_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/218406/ft2_4FGL_J2211.2-1325_daily_bin1397.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/218406/Model_4FGL_J2211.2-1325_daily_bin1397.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/218406/ft1_filtered_4FGL_J2211.2-1325_daily_bin1397.fits....................!
real 64.13
user 62.79
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/218406/ft1_filtered_4FGL_J2211.2-1325_daily_bin1397.fits', '/scratch/kocevski/218406/ft2_4FGL_J2211.2-1325_daily_bin1397.fits', expMap='/scratch/kocevski/218406/expmap_601430401_601689601_4FGL_J2211.2-1325_daily_bin1397.fits', expCube='/scratch/kocevski/218406/ltcube_601430401_601689601_4FGL_J2211.2-1325_daily_bin1397.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/218406/Model_4FGL_J2211.2-1325_daily_bin1397.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2211.2-1325'

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  3.184e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.725e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  4.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/218406/ft1_filtered_4FGL_J2211.2-1325_daily_bin1397.fits
Spacecraft file(s): /scratch/kocevski/218406/ft2_4FGL_J2211.2-1325_daily_bin1397.fits
Exposure map: /scratch/kocevski/218406/expmap_601430401_601689601_4FGL_J2211.2-1325_daily_bin1397.fits
Exposure cube: /scratch/kocevski/218406/ltcube_601430401_601689601_4FGL_J2211.2-1325_daily_bin1397.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/218406/Model_4FGL_J2211.2-1325_daily_bin1397.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) = 6884.58294478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0617       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .43083       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.996       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27725E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3554       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.473       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.356       1.0000         .10000E-03   10000.    
    10 'Prefactor '    66.705       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4724       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.510       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1712       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24330E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    36.393       1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.877       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .88344E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17441E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6256       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .70952       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6884.568     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2970 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0611        8.3696        .25233E-05   -.56110E-04
   2  Prefactor     .41868        5.6394       -.13986E-05    .17306E-04
   3  Prefactor     15.982        19.840       -.10246E-04    .26826E-04
   4  norm          .10000E-03    4.6426        .14010E-07** at limit **
   5  Prefactor     .10000E-03    7.1600        .72881E-06** at limit **
   6  Prefactor     .10000E-03    16.011        .78474E-06** at limit **
   7  Prefactor     1.3555        24.756       -.81790E-05   -.29025E-03
   8  Prefactor     14.464        17.400       -.58478E-05    .41931E-04
   9  Prefactor     13.360        12.076       -.14416E-05    .15291E-04
  10  Prefactor     66.607        113.68       -.10135E-03   -.27948E-05
  11  Prefactor     .10000E-03    3.5474       -.10163E-06** at limit **
  12  Prefactor     .10000E-03    21.303       -.52594E-06** at limit **
  13  norm          3.4723        3.5251        .20054E-05    .12302E-03
  14  Prefactor     .10000E-03    23.109       -.13243E-05** at limit **
  15  Prefactor     26.512        21.259        .15241E-05    .60769E-04
  16  norm          2.1708        1.4085        .36598E-06    .16268E-03
  17  Prefactor     .10000E-03    149.11        .24320E-04** at limit **
  18  norm          36.393        4.4394        .14973E-05   -.24107E-02
  19  Prefactor     34.834        70.397       -.44576E-04   -.78083E-04
  20  Prefactor     .10002E-03    6.7493        .15578E-05** at limit **
  21  Prefactor     .10043E-03    17.424       -.14818E-05** at limit **
  22  Normalizat    1.6255        .26401        .10394E-04   -.34877E-03
  23  Prefactor     .70955        .15768       -.15843E-06    .36443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.06107
  Prefactor  = 0.418679
  Prefactor  = 15.9819
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.35554
  Prefactor  = 14.4643
  Prefactor  = 13.3597
  Prefactor  = 66.6067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.47234
  Prefactor  = 0.0001
  Prefactor  = 26.5121
  norm       = 2.17082
  Prefactor  = 0.000100005
  norm       = 36.3929
  Prefactor  = 34.8343
  Prefactor  = 0.000100018
  Prefactor  = 0.000100427
  Normalizat = 1.62549
  Prefactor  = 0.709553
 **********
 **   18 **HESSE 
 **********

 FCN=   6884.568     FROM HESSE     STATUS=OK           384 CALLS     3354 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0611        8.3723        .13314E-03   -1.5106    
   2  Prefactor     .41868        35.929        .38219E-02   -1.5579    
   3  Prefactor     15.982        19.781        .10014E-03   -1.4908    
   4  norm          .10000E-03    4.6976        .17459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.544        .41065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3555        25.191        .37548E-03   -1.5475    
   8  Prefactor     14.464        17.449        .10528E-03   -1.4947    
   9  Prefactor     13.360        12.058        .10960E-03   -1.4977    
  10  Prefactor     66.607        113.57        .24571E-03   -1.4074    
  11  Prefactor     .10000E-03    3.6517        .30449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4723        3.5179        .14962E-03   -1.5335    
  14  Prefactor     .10000E-03    23.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.512        21.401        .77806E-04   -1.4678    
  16  norm          2.1708        1.3991        .75053E-04   -1.5413    
  17  Prefactor     .10000E-03    150.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          36.393        4.4205        .46999E-04   -1.4501    
  19  Prefactor     34.834        70.577        .67857E-04   -1.4527    
  20  Prefactor     .10002E-03    35.219        .41907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10043E-03    19.319        .11329       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.6255        .31967        .31351E-03   -.74311    
  23  Prefactor     .70955        .19278        .28651E-03   -1.0315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75146e-09
Minuit parameter uncertainties:
  1  8.3734
  2  7.76089
  3  19.7895
  4  3.73367e-06
  5  0.000490852
  6  7.0361e-05
  7  11.6925
  8  17.4552
  9  12.0604
  10  113.944
  11  1.14375e-05
  12  1.02517e-05
  13  3.51806
  14  3.18567e-06
  15  21.4069
  16  1.39909
  17  0.00167833
  18  4.42054
  19  70.7465
  20  0.00160651
  21  0.00574355
  22  0.320074
  23  0.192962
Done.

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

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.446e+01  1.746e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.725e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  4.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
487    Prefactor:  7.096e-01  1.930e-01  0.000e+00  1.000e+01 ( 1.000e+00)
488        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
489        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
486   Normalization:  1.625e+00  3.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.95
Ra Dec: 332.817 -13.419
Photon Flux Upper Limit: 2.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.64e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/218406/likelihoodResults_601430401_601689601_4FGL_J2211.2-1325_daily_bin1397.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) = 6884.50980662
delta logL = 0.0585549978041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6884.4962036
delta logL = 0.0721580098962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.918       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1578       1.0000          .0000       10.000    
     3 'Normalizat'    1.6045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71929       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4900E+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=   6884.496     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      253 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.913        18.356        .11604E-03   -.75245E-04
   2  Index         3.1580        1.2840        .12301E-01    .28743E-03
   3  Normalizat    1.6044        .30760        .31514E-03   -.14931E-03
   4  Prefactor     .71934        .19070        .28472E-03    .87205E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9133
  Index      = 3.15802
  Normalizat = 1.60441
  Prefactor  = 0.719339
 **********
 **   18 **HESSE 
 **********

 FCN=   6884.496     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.913        17.073        .46415E-05   -1.5018    
   2  Index         3.1580        1.1944        .24602E-02   -.37728    
   3  Normalizat    1.6044        .30800        .63029E-04   -.74885    
   4  Prefactor     .71934        .19078        .11389E-04   -1.0277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22821e-10
Minuit parameter uncertainties:
  1  17.0795
  2  1.2079
  3  0.308365
  4  0.190958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/218406': 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) = 6884.49620353
delta logL = 0.072158085216

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.191e+01  1.708e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.158e+00  1.208e+00  0.000e+00  1.000e+01 (-1.000e+00)
246        Scale:  4.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
487    Prefactor:  7.193e-01  1.910e-01  0.000e+00  1.000e+01 ( 1.000e+00)
488        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
489        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
486   Normalization:  1.604e+00  3.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 332.817 -13.419
Photon Index (Free Index): 3.16 +/- 1.21
Photon Flux (Free Index): 7.59e-08 +/- 8.96e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.57e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/218406/cmap_HighResolution_601430401_601689601_4FGL_J2211.2-1325_daily_bin1397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-02', comment='SUCCESS', energy_flux2='1.41e-05', dlogl='7.22e-02', photon_flux2='7.59e-08', job_status='DONE', time_completed='2021-09-28 07:05:08.592645', photon_index_error2='1.21', photon_index2='3.16', ts='0.95', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='2.09e-07', energy_flux_error2='1.57e-05', EG='1.63', time_epoch_completed='1632837908.59', return_code='0', job_id='218406', GAL2='0.72', EG2='1.60', return_code2='0', photon_flux_error2='8.96e-08', ts2='1.09', photon_index='2.72' WHERE bin_id='1397' AND source_name='4FGL J2211.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:05:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 218406: <4FGL_J2211.2-1325_daily_bin1397> in cluster <slac> Done

Job <4FGL_J2211.2-1325_daily_bin1397> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:51:08 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:51:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:51:10 2021
Terminated at Tue Sep 28 07:05:09 2021
Results reported at Tue Sep 28 07:05:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2211.2-1325_daily_bin1397 332.817 -13.4189 601430401 601689601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2211.2-1325 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   682.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            841 sec.

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

