/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 217 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 = 7483
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2211.2-1325_daily_bin222
RA = 332.817, Dec = -13.4189
tmin = 296870401, tmax = 297129601
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='213365', job_status='RUN', time_executed='2021-09-28 06:39:17.585780', time_epoch_executed='1632836357.59' WHERE source_name='4FGL J2211.2-1325' and cadence='daily' and bin_id='222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/213365

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/213365/ft1_4FGL_J2211.2-1325_daily_bin222.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/213365/ft2_4FGL_J2211.2-1325_daily_bin222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/213365/ft1_4FGL_J2211.2-1325_daily_bin222.fits outfile=/scratch/kocevski/213365/ft1_filteredMKT_4FGL_J2211.2-1325_daily_bin222.fits ra=332.817 dec=-13.4189 rad=12.0 tmin=296870401.0 tmax=297129601.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.63
user 3.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/213365/ft2_4FGL_J2211.2-1325_daily_bin222.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/213365/ft1_filteredMKT_4FGL_J2211.2-1325_daily_bin222.fits evtable="EVENTS" outfile="/scratch/kocevski/213365/ft1_filtered_4FGL_J2211.2-1325_daily_bin222.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/213365/ft1_filtered_4FGL_J2211.2-1325_daily_bin222.fits" evtable="EVENTS" scfile=/scratch/kocevski/213365/ft2_4FGL_J2211.2-1325_daily_bin222.fits sctable="SC_DATA" outfile=/scratch/kocevski/213365/ltcube_296870401_297129601_4FGL_J2211.2-1325_daily_bin222.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/213365/ft2_4FGL_J2211.2-1325_daily_bin222.fits
.....................!
real 12.05
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/213365/ft1_filtered_4FGL_J2211.2-1325_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/213365/ft2_4FGL_J2211.2-1325_daily_bin222.fits sctable="SC_DATA" expcube=/scratch/kocevski/213365/ltcube_296870401_297129601_4FGL_J2211.2-1325_daily_bin222.fits outfile=/scratch/kocevski/213365/expmap_296870401_297129601_4FGL_J2211.2-1325_daily_bin222.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/213365/ltcube_296870401_297129601_4FGL_J2211.2-1325_daily_bin222.fits
.....................!
real 191.42
user 186.90
sys 4.15

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/213365/ft1_filtered_4FGL_J2211.2-1325_daily_bin222.fits scfile=/scratch/kocevski/213365/ft2_4FGL_J2211.2-1325_daily_bin222.fits outfile=/scratch/kocevski/213365/cmap_296870401_297129601_4FGL_J2211.2-1325_daily_bin222.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/213365/ft1_filtered_4FGL_J2211.2-1325_daily_bin222.fits scfile=/scratch/kocevski/213365/ft2_4FGL_J2211.2-1325_daily_bin222.fits outfile=/scratch/kocevski/213365/cmap_HighResolution_296870401_297129601_4FGL_J2211.2-1325_daily_bin222.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.56
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/213365/ft1_filtered_4FGL_J2211.2-1325_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/213365/ft2_4FGL_J2211.2-1325_daily_bin222.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/213365/Model_4FGL_J2211.2-1325_daily_bin222.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/213365/ft1_filtered_4FGL_J2211.2-1325_daily_bin222.fits.....................!
real 54.95
user 53.56
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/213365/ft1_filtered_4FGL_J2211.2-1325_daily_bin222.fits', '/scratch/kocevski/213365/ft2_4FGL_J2211.2-1325_daily_bin222.fits', expMap='/scratch/kocevski/213365/expmap_296870401_297129601_4FGL_J2211.2-1325_daily_bin222.fits', expCube='/scratch/kocevski/213365/ltcube_296870401_297129601_4FGL_J2211.2-1325_daily_bin222.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/213365/Model_4FGL_J2211.2-1325_daily_bin222.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/213365/ft1_filtered_4FGL_J2211.2-1325_daily_bin222.fits
Spacecraft file(s): /scratch/kocevski/213365/ft2_4FGL_J2211.2-1325_daily_bin222.fits
Exposure map: /scratch/kocevski/213365/expmap_296870401_297129601_4FGL_J2211.2-1325_daily_bin222.fits
Exposure cube: /scratch/kocevski/213365/ltcube_296870401_297129601_4FGL_J2211.2-1325_daily_bin222.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/213365/Model_4FGL_J2211.2-1325_daily_bin222.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) = 5876.58948191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7731       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .69815       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20291E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .12407E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .54441E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.280       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10560E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.730       1.0000         .10000E-03   10000.    
    13 'norm      '    7.4433       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.601       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .70204E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .74658       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.2328       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2926       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77486       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5876.584     FROM MIGRAD    STATUS=FAILED       962 CALLS     3411 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7758        6.4010        .16716E-03    .12677E-03
   2  Prefactor     .67964        44.154        .45028E-02    .13278E-02
   3  Prefactor     .10001E-03    16.284        .74866E-01** at limit **
   4  norm          .10000E-03    6.4447        .36285E-03** at limit **
   5  Prefactor     .10000E-03    14.981        .26540E-02** at limit **
   6  Prefactor     10.300        13.398        .12497E-03    .14911E-03
   7  Prefactor     .10000E-03    4.0428        .15035E-02** at limit **
   8  Prefactor     .10000E-03    22.581        .36285E-03** at limit **
   9  Prefactor     .10000E-03    17.571        .18142E-02** at limit **
  10  Prefactor     .10000E-03    32.055        .18142E-02** at limit **
  11  Prefactor     .10006E-03    18.225        .23119E-02** at limit **
  12  Prefactor     25.618        64.013        .78974E-04    .38263E-04
  13  norm          7.4349        3.8537        .51868E-03   -.25035E-03
  14  Prefactor     32.585        38.590        .70179E-04   -.10611E-03
  15  Prefactor     .33872E-01    9.6067        .71165E-01    .16212E-03
  16  norm          .74708        .67420        .54523E-03    .73589E-03
  17  Prefactor     .10000E-03    4.5007        .15855E-02** at limit **
  18  norm          .10000E-03    .33701        .85086E-04** at limit **
  19  Prefactor     .10000E-03    16.509        .18142E-02** at limit **
  20  Prefactor     .10000E-03    4.2632        .15452E-02** at limit **
  21  Prefactor     9.2233        17.009        .13190E-03    .58956E-04
  22  Normalizat    1.2926        .25063        .25290E-03   -.78307E-04
  23  Prefactor     .77485        .16275        .21176E-03   -.92394E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5876.584     FROM SIMPLEX   STATUS=UNCHANGED   1100 CALLS     4511 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7758        6.4010        .44698E-06   -1.5227    
   2  Prefactor     .67964        44.154        .89866E-05   -1.5543    
   3  Prefactor     .10001E-03    16.284        .20313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.4447        .35119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.981        .27286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.300        13.398        .22519E-06   -1.5066    
   7  Prefactor     .10000E-03    4.0428        .26815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.581        .38262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.571        .50228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.055        .60111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10006E-03    18.225        .41323E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.618        64.013        .22612E-06   -1.4695    
  13  norm          7.4349        3.8537        .22725E-06   -1.5163    
  14  Prefactor     32.585        38.590        .21539E-06   -1.4566    
  15  Prefactor     .33872E-01    9.6067        .23878E-06   -1.5671    
  16  norm          .74708        .67420        .23217E-06   -1.5535    
  17  Prefactor     .10000E-03    4.5007        .29836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .33701        .23416E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.509        .28110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.2632        .23514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.2233        17.009        .22629E-06   -1.5100    
  22  Normalizat    1.2926        .25063        .12559E-06   -.83788    
  23  Prefactor     .77485        .16275        .15077E-06   -1.0066    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5876.584     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     4884 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7757        6.4001        .66864E-05    .23804E-05
   2  Prefactor     .67974        44.361        .90056E-03    .55621E-04
   3  Prefactor     .10001E-03    14.913        .79401E-01** at limit **
   4  norm          .10000E-03    6.4449        .72569E-04** at limit **
   5  Prefactor     .10000E-03    15.072        .53079E-03** at limit **
   6  Prefactor     10.300        13.395        .49987E-05    .86425E-05
   7  Prefactor     .10000E-03    4.0431        .30071E-03** at limit **
   8  Prefactor     .10000E-03    22.582        .72569E-04** at limit **
   9  Prefactor     .10000E-03    17.584        .36285E-03** at limit **
  10  Prefactor     .10000E-03    32.055        .36285E-03** at limit **
  11  Prefactor     .10000E-03    18.412        .46238E-03** at limit **
  12  Prefactor     25.618        63.992        .15795E-04    .28791E-06
  13  norm          7.4349        3.8526        .20747E-04   -.61262E-04
  14  Prefactor     32.586        38.589        .14036E-04   -.69658E-05
  15  Prefactor     .33870E-01    9.1083        .74367E-01    .15487E-03
  16  norm          .74708        .67404        .21809E-04   -.93829E-06
  17  Prefactor     .10000E-03    4.5012        .31709E-03** at limit **
  18  norm          .10000E-03    .33701        .17017E-04** at limit **
  19  Prefactor     .10000E-03    16.512        .36285E-03** at limit **
  20  Prefactor     .10000E-03    4.2634        .30904E-03** at limit **
  21  Prefactor     9.2232        17.006        .52759E-05    .25858E-06
  22  Normalizat    1.2926        .25050        .10116E-04   -.21128E-04
  23  Prefactor     .77485        .16293        .84705E-05   -.30869E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.77573
  Prefactor  = 0.679736
  Prefactor  = 0.000100012
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.6179
  norm       = 7.43491
  Prefactor  = 32.5855
  Prefactor  = 0.0338705
  norm       = 0.747076
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.22324
  Normalizat = 1.29259
  Prefactor  = 0.77485
 **********
 **   18 **HESSE 
 **********

 FCN=   5876.584     FROM HESSE     STATUS=OK           368 CALLS     5252 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7757        6.4007        .13373E-05   -1.5227    
   2  Prefactor     .67974        44.299        .18011E-03   -1.5543    
   3  Prefactor     .10001E-03    15.335        .77928E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.4448        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.076        .10616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.300        13.398        .99973E-06   -1.5066    
   7  Prefactor     .10000E-03    4.0431        .60142E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.582        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.585        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.055        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.420        .92476E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.618        63.982        .31589E-05   -1.4695    
  13  norm          7.4349        3.8524        .41494E-05   -1.5163    
  14  Prefactor     32.586        38.579        .28072E-05   -1.4566    
  15  Prefactor     .33870E-01    9.1914        .73801E-01   -1.5671    
  16  norm          .74708        .67403        .43619E-05   -1.5535    
  17  Prefactor     .10000E-03    4.5012        .63419E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .33701        .34035E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.512        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.2634        .61807E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.2232        17.006        .52759E-05   -1.5100    
  22  Normalizat    1.2926        .25034        .20232E-05   -.83788    
  23  Prefactor     .77485        .16294        .16941E-05   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00917e-10
Minuit parameter uncertainties:
  1  6.40144
  2  10.9825
  3  0.00086464
  4  1.99011e-08
  5  1.1625e-06
  6  13.4017
  7  6.83505e-08
  8  7.95138e-08
  9  4.89435e-06
  10  2.51508e-07
  11  3.01928e-05
  12  64.1544
  13  3.85253
  14  38.6081
  15  1.11444
  16  0.674032
  17  4.14796e-08
  18  4.51746e-10
  19  8.42205e-08
  20  1.49821e-08
  21  17.0144
  22  0.250575
  23  0.163038
Done.

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

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  7.951e-08  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.748e-01  1.630e-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.293e+00  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/213365/likelihoodResults_296870401_297129601_4FGL_J2211.2-1325_daily_bin222.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) = 5876.58467921
delta logL = -0.000211233694245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5876.58446808
delta logL = -1.00741090137e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13031E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7958       1.0000          .0000       10.000    
     3 'Normalizat'    1.2925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77491       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.

 FCN=   5876.584     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      225 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10026E-03    32.194        .90712E-01** at limit **
   2  Index         2.9018        5.1637        .50000       -.38398E-04
   3  Normalizat    1.2926        .11175E-01    .57189E-01    .20776E-04
   4  Prefactor     .77485        .74815E-02    .43390E-01    .54931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100259
  Index      = 2.90176
  Normalizat = 1.29259
  Prefactor  = 0.77485
 **********
 **   18 **HESSE 
 **********

 FCN=   5876.584     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      260 TOTAL
                     EDM=   .84E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10026E-03    6853.5        .38653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9018        5.5575        .50000       -.43306    
   3  Normalizat    1.2926        .49302E-01    .25290E-03   -.83788    
   4  Prefactor     .77485        .32824E-01    .21176E-03   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.38268e-07
Minuit parameter uncertainties:
  1  0.0666388
  2  39.9099
  3  0.0493036
  4  0.032825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/213365': 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) = 5876.58446663
delta logL = 1.34406946017e-06

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.003e-04  6.664e-02  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.902e+00  3.991e+01  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.749e-01  3.283e-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.293e+00  4.930e-02  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/213365/cmap_HighResolution_296870401_297129601_4FGL_J2211.2-1325_daily_bin222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.85e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-28 06:51:21.883353', job_id='213365', GAL2='0.77', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1632837081.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.34e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='222' AND source_name='4FGL J2211.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:51:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 213365: <4FGL_J2211.2-1325_daily_bin222> in cluster <slac> Done

Job <4FGL_J2211.2-1325_daily_bin222> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:35:30 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:35:32 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:35:32 2021
Terminated at Tue Sep 28 06:51:22 2021
Results reported at Tue Sep 28 06:51:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2211.2-1325_daily_bin222 332.817 -13.4189 296870401 297129601 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 :                                   720.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             262.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

