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


Performing analysis on: 4FGL_J2211.2-1325_weekly_bin684
RA = 332.817, Dec = -13.4189
tmin = 652665601, tmax = 653270401
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='788979', job_status='RUN', time_executed='2021-12-09 03:24:08.709926', time_epoch_executed='1639049048.71' WHERE source_name='4FGL J2211.2-1325' and cadence='weekly' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788979

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788979/ft1_4FGL_J2211.2-1325_weekly_bin684.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788979/ft2_4FGL_J2211.2-1325_weekly_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788979/ft1_4FGL_J2211.2-1325_weekly_bin684.fits outfile=/scratch/kocevski/788979/ft1_filteredMKT_4FGL_J2211.2-1325_weekly_bin684.fits ra=332.817 dec=-13.4189 rad=12.0 tmin=652665601.0 tmax=653270401.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 6.63
user 6.32
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/788979/ft1_filtered_4FGL_J2211.2-1325_weekly_bin684.fits" evtable="EVENTS" scfile=/scratch/kocevski/788979/ft2_4FGL_J2211.2-1325_weekly_bin684.fits sctable="SC_DATA" outfile=/scratch/kocevski/788979/ltcube_652665601_653270401_4FGL_J2211.2-1325_weekly_bin684.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/788979/ft2_4FGL_J2211.2-1325_weekly_bin684.fits
.....................!
real 32.83
user 32.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788979/ft1_filtered_4FGL_J2211.2-1325_weekly_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/788979/ft2_4FGL_J2211.2-1325_weekly_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/788979/ltcube_652665601_653270401_4FGL_J2211.2-1325_weekly_bin684.fits outfile=/scratch/kocevski/788979/expmap_652665601_653270401_4FGL_J2211.2-1325_weekly_bin684.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/788979/ltcube_652665601_653270401_4FGL_J2211.2-1325_weekly_bin684.fits
.....................!
real 190.72
user 186.11
sys 3.99

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/788979/ft1_filtered_4FGL_J2211.2-1325_weekly_bin684.fits scfile=/scratch/kocevski/788979/ft2_4FGL_J2211.2-1325_weekly_bin684.fits outfile=/scratch/kocevski/788979/cmap_652665601_653270401_4FGL_J2211.2-1325_weekly_bin684.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.58
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/788979/ft1_filtered_4FGL_J2211.2-1325_weekly_bin684.fits scfile=/scratch/kocevski/788979/ft2_4FGL_J2211.2-1325_weekly_bin684.fits outfile=/scratch/kocevski/788979/cmap_HighResolution_652665601_653270401_4FGL_J2211.2-1325_weekly_bin684.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.59
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/788979/ft1_filtered_4FGL_J2211.2-1325_weekly_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/788979/ft2_4FGL_J2211.2-1325_weekly_bin684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/788979/Model_4FGL_J2211.2-1325_weekly_bin684.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/788979/ft1_filtered_4FGL_J2211.2-1325_weekly_bin684.fits.............................!
real 20.43
user 19.14
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/788979/ft1_filtered_4FGL_J2211.2-1325_weekly_bin684.fits', '/scratch/kocevski/788979/ft2_4FGL_J2211.2-1325_weekly_bin684.fits', expMap='/scratch/kocevski/788979/expmap_652665601_653270401_4FGL_J2211.2-1325_weekly_bin684.fits', expCube='/scratch/kocevski/788979/ltcube_652665601_653270401_4FGL_J2211.2-1325_weekly_bin684.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/788979/Model_4FGL_J2211.2-1325_weekly_bin684.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/788979/ft1_filtered_4FGL_J2211.2-1325_weekly_bin684.fits
Spacecraft file(s): /scratch/kocevski/788979/ft2_4FGL_J2211.2-1325_weekly_bin684.fits
Exposure map: /scratch/kocevski/788979/expmap_652665601_653270401_4FGL_J2211.2-1325_weekly_bin684.fits
Exposure cube: /scratch/kocevski/788979/ltcube_652665601_653270401_4FGL_J2211.2-1325_weekly_bin684.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/788979/Model_4FGL_J2211.2-1325_weekly_bin684.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1106       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.596       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .40473       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.440       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .60143E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12845E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5461       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1193.1       1.0000         .10000E-03   10000.    
    13 'norm      '    25.590       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1565       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.548       1.0000         .10000E-03   10000.    
    16 'norm      '    .10769E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39526       1.0000         .10000E-03   10000.    
    18 'norm      '    .37133E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1285       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .36206E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2894       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92755       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   775.6680     FROM MIGRAD    STATUS=CONVERGED    183 CALLS      673 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9343        .35448E-07** at limit **
   2  Prefactor     2.2097        52.569       -.15421E-03   -.10670E-03
   3  Prefactor     .10000E-03    21.793       -.66340E-06** at limit **
   4  norm          .10000E-03    7.0189        .12580E-06** at limit **
   5  Prefactor     19.616        17.915        .16260E-05    .19670E-02
   6  Prefactor     .10001E-03    146.37        .55873E-04** at limit **
   7  Prefactor     33.440        1.4428       -.12516E-05    .22628E-02
   8  Prefactor     .10000E-03    71.417       -.29883E-05** at limit **
   9  Prefactor     .10000E-03    33.596        .92806E-06** at limit **
  10  Prefactor     .10004E-03    312.85        .12720E-04** at limit **
  11  Prefactor     .10000E-03    6.4893        .32660E-07** at limit **
  12  Prefactor     1195.3        55.726       -.20338E-05   -.46191E-01
  13  norm          25.573        26.874       -.17082E-04   -.14140E-02
  14  Prefactor     .10003E-03    239.31       -.14492E-04** at limit **
  15  Prefactor     3.7243        1075.1        .89336E-04    .73897E-02
  16  norm          .10000E-03    15.686       -.25856E-06** at limit **
  17  Prefactor     .10645E-03    1239.7        .27858E-03** at limit **
  18  norm          .10009E-03    100.45       -.17300E-03** at limit **
  19  Prefactor     .21538        7050.8        .20418E-03   -.41538E-02
  20  Prefactor     .13531E-03    11.901        .29092E-04** at limit **
  21  Prefactor     2.2894        1.0261         .0000         .0000    
  22  Normalizat    .10000E-01    .16793       -.29135E-05** at limit **
  23  Prefactor     .92770        .15536        .30392E-04    .40619E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.20971
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.616
  Prefactor  = 0.000100014
  Prefactor  = 33.4403
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 1195.3
  norm       = 25.5733
  Prefactor  = 0.000100031
  Prefactor  = 3.72427
  norm       = 0.0001
  Prefactor  = 0.000106449
  norm       = 0.000100093
  Prefactor  = 0.215384
  Prefactor  = 0.000135305
  Prefactor  = 2.28936
  Normalizat = 0.01
  Prefactor  = 0.927704
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   775.6680     FROM HESSE     STATUS=FAILED        89 CALLS      762 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9238        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2097        47.537        .70993E-02   -1.5411    
   3  Prefactor     .10000E-03    21.814        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.0168        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.616        17.616        .22620E-02   -1.4822    
   6  Prefactor     .10001E-03    145.04        .10875E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.440        45.509        .17324E-02   -1.4551    
   8  Prefactor     .10000E-03    71.254        .94682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.490        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    313.17        .85675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.4892        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1195.3        1126.7        .30850E-03   -.86476    
  13  norm          25.573        26.864        .19797E-02   -1.4696    
  14  Prefactor     .10003E-03    239.54        .70134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7243        7893.7        .30842E-02   -1.5322    
  16  norm          .10000E-03    15.701        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10645E-03    1254.8        .10835E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10009E-03    100.91        .92071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .21538        7333.0        .44383E-02   -1.5801    
  20  Prefactor     .13531E-03    1057.7        .98076E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     564.42        562.02         .0000       -1.5405    
  22  Normalizat    .10000E-01    .25505       -.29135E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .92770        1.2711        .30392E-04   -.95180    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.59074e-10
Minuit parameter uncertainties:
  1  5.343e-07
  2  20.5162
  3  3.00693e-05
  4  9.33498e-07
  5  17.6207
  6  0.00284233
  7  45.5567
  8  0.000760572
  9  4.22361e-05
  10  0.00686599
  11  3.80532e-08
  12  1150.65
  13  26.8767
  14  0.00547519
  15  341.181
  16  9.57564e-06
  17  0.183904
  18  0.00612748
  19  69.3513
  20  0.393634
  21  1.0261
  22  9.21618e-08
  23  1.3158
Done.

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

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  7.606e-04  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:  9.277e-01  1.316e+00  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.000e-02  9.216e-08  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/788979/likelihoodResults_652665601_653270401_4FGL_J2211.2-1325_weekly_bin684.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): 102
logL (Free Index) = 775.668039597
delta logL = -7.06433328332e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 775.667969902
delta logL = -9.47792386796e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3035       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92770       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=   775.6680     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      278 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10987E-03    77.172        .18142E-01** at limit **
   2  Index         3.2128        5.3640        .50000        .49544E-05
   3  Normalizat    .10000E-01    .50583E-03    .65920E-02** at limit **
   4  Prefactor     .92771        .79431E-02    .13584E-03    .45466E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109866
  Index      = 3.21279
  Normalizat = 0.01
  Prefactor  = 0.927707
 **********
 **   18 **HESSE 
 **********

 FCN=   775.6680     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10987E-03    657.10        .19533E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2128        5.1471        .50000       -.36553    
   3  Normalizat    .10000E-01    .44560E-02    .13184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .92771        .23574E-01    .27168E-04   -.95180    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.90591e-09
Minuit parameter uncertainties:
  1  0.162852
  2  1408.05
  3  4.26461e-07
  4  0.0235741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788979': 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): 102
logL (Free Index) = 775.667969311
delta logL = -3.5750213101e-07

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.099e-04  1.629e-01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.213e+00  1.408e+03  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:  9.277e-01  2.357e-02  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.000e-02  4.265e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 332.817 -13.419

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/788979/cmap_HighResolution_652665601_653270401_4FGL_J2211.2-1325_weekly_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.40e-02', job_status='DONE', photon_flux_upper_limit='8.12e-07', time_completed='2021-12-09 03:30:20.404905', job_id='788979', GAL2='0.93', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1639049420.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.93', dlogl='-3.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='684' AND source_name='4FGL J2211.2-1325' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Dec  9 03:30:20 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 788979: <4FGL_J2211.2-1325_weekly_bin684> in cluster <slac> Done

Job <4FGL_J2211.2-1325_weekly_bin684> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Dec  9 03:15:33 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  9 03:23:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  9 03:23:20 2021
Terminated at Thu Dec  9 03:30:21 2021
Results reported at Thu Dec  9 03:30:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2211.2-1325_weekly_bin684 332.817 -13.4189 652665601 653270401 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 :                                   373.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             462.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   420 sec.
    Turnaround time :                            888 sec.

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

