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


Performing analysis on: 4FGL_J2211.2-1325_daily_bin1404
RA = 332.817, Dec = -13.4189
tmin = 603244801, tmax = 603504001
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='218417', job_status='RUN', time_executed='2021-09-28 06:52:11.748228', time_epoch_executed='1632837131.75' WHERE source_name='4FGL J2211.2-1325' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/218417

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/218417/ft1_4FGL_J2211.2-1325_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/218417/ft2_4FGL_J2211.2-1325_daily_bin1404.fits


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

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

Done.
real 2.90
user 2.68
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/218417/ft1_filtered_4FGL_J2211.2-1325_daily_bin1404.fits" evtable="EVENTS" scfile=/scratch/kocevski/218417/ft2_4FGL_J2211.2-1325_daily_bin1404.fits sctable="SC_DATA" outfile=/scratch/kocevski/218417/ltcube_603244801_603504001_4FGL_J2211.2-1325_daily_bin1404.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/218417/ft2_4FGL_J2211.2-1325_daily_bin1404.fits
.....................!
real 12.77
user 12.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/218417/ft1_filtered_4FGL_J2211.2-1325_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/218417/ft2_4FGL_J2211.2-1325_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/218417/ltcube_603244801_603504001_4FGL_J2211.2-1325_daily_bin1404.fits outfile=/scratch/kocevski/218417/expmap_603244801_603504001_4FGL_J2211.2-1325_daily_bin1404.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/218417/ltcube_603244801_603504001_4FGL_J2211.2-1325_daily_bin1404.fits
.....................!
real 191.36
user 186.01
sys 5.00

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/218417/ft1_filtered_4FGL_J2211.2-1325_daily_bin1404.fits scfile=/scratch/kocevski/218417/ft2_4FGL_J2211.2-1325_daily_bin1404.fits outfile=/scratch/kocevski/218417/cmap_603244801_603504001_4FGL_J2211.2-1325_daily_bin1404.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/218417/ft1_filtered_4FGL_J2211.2-1325_daily_bin1404.fits scfile=/scratch/kocevski/218417/ft2_4FGL_J2211.2-1325_daily_bin1404.fits outfile=/scratch/kocevski/218417/cmap_HighResolution_603244801_603504001_4FGL_J2211.2-1325_daily_bin1404.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/218417/ft1_filtered_4FGL_J2211.2-1325_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/218417/ft2_4FGL_J2211.2-1325_daily_bin1404.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/218417/Model_4FGL_J2211.2-1325_daily_bin1404.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/218417/ft1_filtered_4FGL_J2211.2-1325_daily_bin1404.fits.............................!
real 19.21
user 17.99
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.993       1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     4 'norm      '    10000.       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11201E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12757E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20077E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.613       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11254E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.786       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12146E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.450       1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12330E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    18.788       1.0000         .10000E-03   10000.    
    19 'Prefactor '    80.223       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10782E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    68.701       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97615       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=   704.9609     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2978 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.198        467.51        .29087E-03    .24737E-05
   2  Prefactor    10000.0        9398.2        .27870E-03** at limit **
   3  Prefactor    10000.0        8329.5        .44030E-03** at limit **
   4  norm         10000.0        9753.6        .19202E-02** at limit **
   5  Prefactor    10000.0        6788.5        .16961E-02** at limit **
   6  Prefactor    10000.0        6633.4        .53374E-03** at limit **
   7  Prefactor     .10000E-03    390.41       -.21241E-03** at limit **
   8  Prefactor     .10000E-03    195.05        .17111E-03** at limit **
   9  Prefactor     .10000E-03    16.778        .54716E-06** at limit **
  10  Prefactor     .10000E-03    340.43       -.94691E-04** at limit **
  11  Prefactor     10.610        13.946       -.16041E-04    .84895E-04
  12  Prefactor     .10000E-03    158.52        .13749E-03** at limit **
  13  norm          13.780        18.557       -.91394E-06    .17192E-03
  14  Prefactor     .10001E-03    358.26       -.13548E-03** at limit **
  15  Prefactor     24.466        50.419        .95815E-05    .21381E-05
  16  norm          .10000E-03    2.0180       -.23137E-07** at limit **
  17  Prefactor     .10000E-03    100.55       -.10444E-03** at limit **
  18  norm          18.790        8.4667        .21514E-05    .16616E-02
  19  Prefactor     80.201        166.17       -.21902E-04    .14730E-03
  20  Prefactor     .10000E-03    62.423        .18624E-04** at limit **
  21  Prefactor     68.674        59.758       -.11984E-04    .10125E-03
  22  Normalizat    .10000E-01    .31892        .32808E-05** at limit **
  23  Prefactor     .97608        .31825        .23661E-05    .12831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.1984
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6097
  Prefactor  = 0.0001
  norm       = 13.7798
  Prefactor  = 0.000100008
  Prefactor  = 24.4662
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 18.7899
  Prefactor  = 80.2012
  Prefactor  = 0.0001
  Prefactor  = 68.674
  Normalizat = 0.01
  Prefactor  = 0.976079
 **********
 **   18 **HESSE 
 **********

 FCN=   704.9609     FROM HESSE     STATUS=OK           356 CALLS     3334 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.198        469.39        .29246E-03   -1.4333    
   2  Prefactor    10000.0        9398.2        .21367E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        8329.5        .21000E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm         10000.0        9753.4        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        6790.1        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        6633.4        .20651E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    390.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    195.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.782        .10626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    340.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.610        14.039        .10439E-03   -1.5056    
  12  Prefactor     .10000E-03    158.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.780        18.623        .10788E-03   -1.4965    
  14  Prefactor     .10001E-03    358.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.466        50.364        .81011E-04   -1.4718    
  16  norm          .10000E-03    2.0322        .36824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    100.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.790        8.6079        .35286E-04   -1.4841    
  19  Prefactor     80.201        168.41        .44840E-04   -1.3914    
  20  Prefactor     .10000E-03    62.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     68.674        59.805        .24213E-03   -1.4049    
  22  Normalizat    .10000E-01    .33443        .87532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .97608        .31296        .22559E-03   -.93531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47257e-10
Minuit parameter uncertainties:
  1  300.806
  2  0.000984605
  3  0.000354023
  4  0.0274736
  5  0.0128412
  6  0.000185209
  7  9.11653e-05
  8  9.79294e-06
  9  0.000165789
  10  0.000311612
  11  14.0433
  12  5.4834e-06
  13  18.6309
  14  0.00338411
  15  50.4518
  16  6.77773e-06
  17  0.000557512
  18  8.60848
  19  169.428
  20  0.000253658
  21  59.8578
  22  7.21e-06
  23  0.313541
Done.

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

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  9.793e-06  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.761e-01  3.135e-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.000e-02  7.210e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 332.817 -13.419
Photon Flux Upper Limit: 4.38e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.45e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/218417/likelihoodResults_603244801_603504001_4FGL_J2211.2-1325_daily_bin1404.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) = 704.960903905
delta logL = -2.48529408964e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 704.960879332
delta logL = -2.8010947517e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.8091       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97608       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=   704.9609     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      286 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11289E-03    279.46        .18142E-01** at limit **
   2  Index         3.4626        7.8319        .50000        .16131E-05
   3  Normalizat    .10000E-01    .15541E-02    .87533E-02** at limit **
   4  Prefactor     .97608        .17496E-01    .22559E-03    .77381E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000112894
  Index      = 3.46261
  Normalizat = 0.01
  Prefactor  = 0.976076
 **********
 **   18 **HESSE 
 **********

 FCN=   704.9609     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11289E-03    1579.9        .28782E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4626        7.6760        .50000       -.31254    
   3  Normalizat    .10000E-01    .94181E-02    .17507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .97608        .43068E-01    .45118E-04   -.93531    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.652e-09
Minuit parameter uncertainties:
  1  0.293562
  2  3754.34
  3  3.61439e-07
  4  0.0430691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/218417': 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) = 704.960879255
delta logL = -2.03685544875e-07

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.129e-04  2.936e-01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.463e+00  3.754e+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.761e-01  4.307e-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  3.614e-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/218417/cmap_HighResolution_603244801_603504001_4FGL_J2211.2-1325_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-01', job_status='DONE', photon_flux_upper_limit='4.38e-06', time_completed='2021-09-28 06:59:26.743325', job_id='218417', GAL2='0.98', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632837566.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-2.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1404' AND source_name='4FGL J2211.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:59:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 218417: <4FGL_J2211.2-1325_daily_bin1404> in cluster <slac> Done

Job <4FGL_J2211.2-1325_daily_bin1404> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:51:09 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:51:11 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:11 2021
Terminated at Tue Sep 28 06:59:27 2021
Results reported at Tue Sep 28 06:59:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2211.2-1325_daily_bin1404 332.817 -13.4189 603244801 603504001 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 :                                   348.16 sec.
    Max Memory :                                 1002 MB
    Average Memory :                             264.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   496 sec.
    Turnaround time :                            498 sec.

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

