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


Performing analysis on: 4FGL_J2211.2-1325_daily_bin1255
RA = 332.817, Dec = -13.4189
tmin = 564624001, tmax = 564883201
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='218174', job_status='RUN', time_executed='2021-09-28 06:52:39.899156', time_epoch_executed='1632837159.9' WHERE source_name='4FGL J2211.2-1325' and cadence='daily' and bin_id='1255'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/218174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/218174/ft1_4FGL_J2211.2-1325_daily_bin1255.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/218174/ft2_4FGL_J2211.2-1325_daily_bin1255.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/218174/ft1_4FGL_J2211.2-1325_daily_bin1255.fits outfile=/scratch/kocevski/218174/ft1_filteredMKT_4FGL_J2211.2-1325_daily_bin1255.fits ra=332.817 dec=-13.4189 rad=12.0 tmin=564624001.0 tmax=564883201.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.66
user 3.37
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/218174/ft2_4FGL_J2211.2-1325_daily_bin1255.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/218174/ft1_filteredMKT_4FGL_J2211.2-1325_daily_bin1255.fits evtable="EVENTS" outfile="/scratch/kocevski/218174/ft1_filtered_4FGL_J2211.2-1325_daily_bin1255.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/218174/ft1_filtered_4FGL_J2211.2-1325_daily_bin1255.fits" evtable="EVENTS" scfile=/scratch/kocevski/218174/ft2_4FGL_J2211.2-1325_daily_bin1255.fits sctable="SC_DATA" outfile=/scratch/kocevski/218174/ltcube_564624001_564883201_4FGL_J2211.2-1325_daily_bin1255.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/218174/ft2_4FGL_J2211.2-1325_daily_bin1255.fits
.....................!
real 11.67
user 11.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/218174/ft1_filtered_4FGL_J2211.2-1325_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/218174/ft2_4FGL_J2211.2-1325_daily_bin1255.fits sctable="SC_DATA" expcube=/scratch/kocevski/218174/ltcube_564624001_564883201_4FGL_J2211.2-1325_daily_bin1255.fits outfile=/scratch/kocevski/218174/expmap_564624001_564883201_4FGL_J2211.2-1325_daily_bin1255.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/218174/ltcube_564624001_564883201_4FGL_J2211.2-1325_daily_bin1255.fits
.....................!
real 189.95
user 185.24
sys 4.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 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/218174/ft1_filtered_4FGL_J2211.2-1325_daily_bin1255.fits scfile=/scratch/kocevski/218174/ft2_4FGL_J2211.2-1325_daily_bin1255.fits outfile=/scratch/kocevski/218174/cmap_564624001_564883201_4FGL_J2211.2-1325_daily_bin1255.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/218174/ft1_filtered_4FGL_J2211.2-1325_daily_bin1255.fits scfile=/scratch/kocevski/218174/ft2_4FGL_J2211.2-1325_daily_bin1255.fits outfile=/scratch/kocevski/218174/cmap_HighResolution_564624001_564883201_4FGL_J2211.2-1325_daily_bin1255.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3376       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.7461       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12128E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.351       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4913       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2542       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4671       1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.908       1.0000         .10000E-03   10000.    
    13 'norm      '    .32394       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    80.526       1.0000         .10000E-03   10000.    
    16 'norm      '    .74685       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.466       1.0000         .10000E-03   10000.    
    18 'norm      '    .95190       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.593       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97295       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97344       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=   6694.975     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2623 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3369        4.1966        .15194E-06   -.34739E-05
   2  Prefactor     .10000E-03    4.8321       -.36725E-07** at limit **
   3  Prefactor     .10000E-03    3.9096       -.20615E-07** at limit **
   4  norm          7.7463        5.2224       -.48590E-07   -.27462E-04
   5  Prefactor     .10001E-03    4.5276        .10012E-05** at limit **
   6  Prefactor     20.347        15.544        .29505E-06   -.54523E-04
   7  Prefactor     .10000E-03    23.077        .28885E-05** at limit **
   8  Prefactor     8.4932        12.869        .72216E-06   -.82644E-04
   9  Prefactor     3.2522        8.8794        .30185E-05   -.16054E-03
  10  Prefactor     .10000E-03    29.880       -.20625E-05** at limit **
  11  Prefactor     2.4683        4.0232        .98963E-07   -.99173E-04
  12  Prefactor     50.923        88.384       -.50424E-05   -.35629E-04
  13  norm          .31195        1.8351        .48189E-06   -.54092E-03
  14  Prefactor     .10000E-03    44.428       -.57867E-06** at limit **
  15  Prefactor     80.506        39.215        .40818E-05    .11725E-03
  16  norm          .74693        .75078        .76439E-07    .12234E-03
  17  Prefactor     11.506        34.717       -.19760E-05   -.46462E-04
  18  norm          .94767        2.2199       -.77710E-07   -.90170E-03
  19  Prefactor     28.568        40.071        .40110E-05    .95079E-05
  20  Prefactor     .10000E-03    3.5769       -.73958E-07** at limit **
  21  Prefactor     .10000E-03    8.0441        .93305E-07** at limit **
  22  Normalizat    .97275        .22284       -.25919E-05   -.17433E-03
  23  Prefactor     .97366        .13141        .69794E-06   -.38813E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.33687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.74634
  Prefactor  = 0.000100014
  Prefactor  = 20.3473
  Prefactor  = 0.0001
  Prefactor  = 8.49315
  Prefactor  = 3.25218
  Prefactor  = 0.0001
  Prefactor  = 2.46834
  Prefactor  = 50.923
  norm       = 0.311955
  Prefactor  = 0.0001
  Prefactor  = 80.5062
  norm       = 0.746931
  Prefactor  = 11.5056
  norm       = 0.947671
  Prefactor  = 28.5681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.972747
  Prefactor  = 0.973661
 **********
 **   18 **HESSE 
 **********

 FCN=   6694.975     FROM HESSE     STATUS=OK           378 CALLS     3001 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3369        4.1961        .14389E-03   -1.5246    
   2  Prefactor     .10000E-03    4.8447        .17566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9136        .15800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.7463        5.2244        .14408E-03   -1.5151    
   5  Prefactor     .10001E-03    19.678        .32102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.347        15.523        .88786E-04   -1.4805    
   7  Prefactor     .10000E-03    23.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.4932        12.909        .13757E-03   -1.5125    
   9  Prefactor     3.2522        9.1444        .11225E-02   -1.5347    
  10  Prefactor     .10000E-03    29.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4683        4.0126        .18370E-03   -1.5394    
  12  Prefactor     50.923        88.451        .56208E-04   -1.4280    
  13  norm          .31195        11.235        .19568E-02   -1.5596    
  14  Prefactor     .10000E-03    44.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     80.506        39.454        .44756E-04   -1.3911    
  16  norm          .74693        .71767        .67009E-03   -1.5535    
  17  Prefactor     11.506        36.124        .11831E-03   -1.5029    
  18  norm          .94767        2.1547        .90791E-03   -1.5513    
  19  Prefactor     28.568        39.126        .74924E-04   -1.4638    
  20  Prefactor     .10000E-03    3.5787        .15113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.0516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .97275        .26811        .30065E-03   -.93949    
  23  Prefactor     .97366        .16055        .19761E-03   -.93613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9348e-09
Minuit parameter uncertainties:
  1  4.19634
  2  4.56213e-07
  3  1.21899e-07
  4  5.22471
  5  0.00104976
  6  15.5261
  7  7.60602e-05
  8  12.9137
  9  9.14835
  10  8.04589e-05
  11  4.01308
  12  88.6798
  13  3.74437
  14  4.79744e-05
  15  39.4664
  16  0.717674
  17  36.1931
  18  2.15492
  19  39.1606
  20  3.9685e-06
  21  7.25386e-07
  22  0.268481
  23  0.160633
Done.

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

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  8.493e+00  1.291e+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:  9.737e-01  1.606e-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:  9.727e-01  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/218174/likelihoodResults_564624001_564883201_4FGL_J2211.2-1325_daily_bin1255.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) = 6694.08858805
delta logL = 0.886012310219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6694.07279625
delta logL = 0.901804106844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28908       1.0000         .10000E-03   10000.    
     2 'Index     '    6.2302       1.0000          .0000       10.000    
     3 'Normalizat'    .88426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0193       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=   6694.073     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      283 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28825        3.1825        .72075E-02    .66416E-03
   2  Index         6.2338        3.4338        .19461        .78684E-04
   3  Normalizat    .88402        .47324E-01    .70911E-01   -.17696E-05
   4  Prefactor     1.0195        .31277E-01    .42214E-01   -.42722E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.288247
  Index      = 6.23384
  Normalizat = 0.884024
  Prefactor  = 1.01949
 **********
 **   18 **HESSE 
 **********

 FCN=   6694.073     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      316 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28825        8.1808        .32912E-03   -1.5601    
   2  Index         6.2338        8.0205        .72648E-02    .24934    
   3  Normalizat    .88402        .18464        .31376E-03   -.97024    
   4  Prefactor     1.0195        .11778        .19361E-03   -.92083    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.14228e-07
Minuit parameter uncertainties:
  1  3.07115
  2  7.46896
  3  0.184772
  4  0.117809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/218174': 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) = 6694.07279103
delta logL = 0.901809328289

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  2.882e-01  3.071e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  6.234e+00  7.469e+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:  1.019e+00  1.178e-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:  8.840e-01  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.57
Ra Dec: 332.817 -13.419
Photon Index (Free Index): 6.23 +/- 7.47
Photon Flux (Free Index): 9.22e-08 +/- 7.73e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.19e-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/218174/cmap_HighResolution_564624001_564883201_4FGL_J2211.2-1325_daily_bin1255.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='1.14e-05', dlogl='9.02e-01', photon_flux2='9.22e-08', job_status='DONE', time_completed='2021-09-28 07:04:28.583044', photon_index_error2='7.47', photon_index2='6.23', ts='0.54', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.19e-05', EG='0.97', time_epoch_completed='1632837868.58', return_code='0', job_id='218174', GAL2='1.02', EG2='0.88', return_code2='102', photon_flux_error2='7.73e-08', ts2='2.57', photon_index='2.72' WHERE bin_id='1255' AND source_name='4FGL J2211.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:04:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 218174: <4FGL_J2211.2-1325_daily_bin1255> in cluster <slac> Done

Job <4FGL_J2211.2-1325_daily_bin1255> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:50:46 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:50:48 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:50:48 2021
Terminated at Tue Sep 28 07:04:29 2021
Results reported at Tue Sep 28 07:04:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2211.2-1325_daily_bin1255 332.817 -13.4189 564624001 564883201 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 :                                   635.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            823 sec.

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

