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


Performing analysis on: 4FGL_J2211.2-1325_daily_bin1036
RA = 332.817, Dec = -13.4189
tmin = 507859201, tmax = 508118401
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='217810', job_status='RUN', time_executed='2021-09-28 06:53:34.657940', time_epoch_executed='1632837214.66' WHERE source_name='4FGL J2211.2-1325' and cadence='daily' and bin_id='1036'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217810

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217810/ft1_4FGL_J2211.2-1325_daily_bin1036.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217810/ft2_4FGL_J2211.2-1325_daily_bin1036.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217810/ft1_4FGL_J2211.2-1325_daily_bin1036.fits outfile=/scratch/kocevski/217810/ft1_filteredMKT_4FGL_J2211.2-1325_daily_bin1036.fits ra=332.817 dec=-13.4189 rad=12.0 tmin=507859201.0 tmax=508118401.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 4.15
user 3.91
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217810/ft1_filtered_4FGL_J2211.2-1325_daily_bin1036.fits" evtable="EVENTS" scfile=/scratch/kocevski/217810/ft2_4FGL_J2211.2-1325_daily_bin1036.fits sctable="SC_DATA" outfile=/scratch/kocevski/217810/ltcube_507859201_508118401_4FGL_J2211.2-1325_daily_bin1036.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/217810/ft2_4FGL_J2211.2-1325_daily_bin1036.fits
.....................!
real 11.85
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217810/ft1_filtered_4FGL_J2211.2-1325_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/217810/ft2_4FGL_J2211.2-1325_daily_bin1036.fits sctable="SC_DATA" expcube=/scratch/kocevski/217810/ltcube_507859201_508118401_4FGL_J2211.2-1325_daily_bin1036.fits outfile=/scratch/kocevski/217810/expmap_507859201_508118401_4FGL_J2211.2-1325_daily_bin1036.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/217810/ltcube_507859201_508118401_4FGL_J2211.2-1325_daily_bin1036.fits
.....................!
real 190.71
user 184.76
sys 5.63

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/217810/ft1_filtered_4FGL_J2211.2-1325_daily_bin1036.fits scfile=/scratch/kocevski/217810/ft2_4FGL_J2211.2-1325_daily_bin1036.fits outfile=/scratch/kocevski/217810/cmap_507859201_508118401_4FGL_J2211.2-1325_daily_bin1036.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217810/ft1_filtered_4FGL_J2211.2-1325_daily_bin1036.fits scfile=/scratch/kocevski/217810/ft2_4FGL_J2211.2-1325_daily_bin1036.fits outfile=/scratch/kocevski/217810/cmap_HighResolution_507859201_508118401_4FGL_J2211.2-1325_daily_bin1036.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13279E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    8.6883       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4226       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3655       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.496       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .82179E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.463       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9265       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.517       1.0000         .10000E-03   10000.    
    13 'norm      '    7.5408       1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.166       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7824       1.0000         .10000E-03   10000.    
    17 'Prefactor '    72.070       1.0000         .10000E-03   10000.    
    18 'norm      '    .11892E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.220       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .61866       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2913       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=   7239.355     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2684 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9526        .14941E-06** at limit **
   2  Prefactor     .10000E-03    2.7569        .32479E-07** at limit **
   3  Prefactor     .10001E-03    11.498       -.94684E-06** at limit **
   4  norm          8.6890        6.1387       -.55860E-07   -.10429E-03
   5  Prefactor     1.4200        3.4736        .25546E-05   -.11606E-02
   6  Prefactor     1.3631        12.342        .14478E-06   -.31827E-04
   7  Prefactor     .10000E-03    7.2240        .16252E-06** at limit **
   8  Prefactor     16.497        11.585       -.97828E-07   -.13270E-03
   9  Prefactor     .10011E-03    25.902       -.98917E-05** at limit **
  10  Prefactor     57.440        73.959        .15510E-05   -.18010E-04
  11  Prefactor     2.9244        4.7357        .16473E-06   -.90498E-03
  12  Prefactor     24.504        57.584        .16057E-05   -.81275E-05
  13  norm          7.5406        4.3209       -.10687E-07   -.28813E-03
  14  Prefactor     46.197        67.442       -.16308E-05   -.30194E-04
  15  Prefactor     .10000E-03    27.509        .53756E-06** at limit **
  16  norm          1.7825        .98715       -.27985E-07   -.14044E-02
  17  Prefactor     72.118        17.660       -.12681E-05   -.16203E-02
  18  norm          .10000E-03    .81520       -.12034E-05** at limit **
  19  Prefactor     .10000E-03    16.405       -.79103E-07** at limit **
  20  Prefactor     18.218        12.998       -.37379E-07   -.12796E-03
  21  Prefactor     .10000E-03    10.772       -.47491E-08** at limit **
  22  Normalizat    .61879        .21334       -.41036E-06   -.40669E-03
  23  Prefactor     1.2913        .14515       -.83687E-06   -.91832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 8.68901
  Prefactor  = 1.42003
  Prefactor  = 1.36308
  Prefactor  = 0.0001
  Prefactor  = 16.497
  Prefactor  = 0.000100107
  Prefactor  = 57.4398
  Prefactor  = 2.92439
  Prefactor  = 24.5043
  norm       = 7.54061
  Prefactor  = 46.1971
  Prefactor  = 0.000100001
  norm       = 1.78254
  Prefactor  = 72.1179
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 18.2182
  Prefactor  = 0.0001
  Normalizat = 0.618795
  Prefactor  = 1.29127
 **********
 **   18 **HESSE 
 **********

 FCN=   7239.355     FROM HESSE     STATUS=OK           378 CALLS     3062 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0913        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.7777        .13797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    14.512        .76758E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6890        6.1425        .13599E-03   -1.5118    
   5  Prefactor     1.4200        5.4607        .18130E-02   -1.5470    
   6  Prefactor     1.3631        12.250        .37342E-03   -1.5474    
   7  Prefactor     .10000E-03    7.3181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.497        11.592        .98612E-04   -1.4895    
   9  Prefactor     .10011E-03    56.315        .41932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     57.440        73.954        .52922E-04   -1.4191    
  11  Prefactor     2.9244        4.7616        .11106E-02   -1.5366    
  12  Prefactor     24.504        57.621        .80901E-04   -1.4718    
  13  norm          7.5406        4.3114        .12360E-03   -1.5159    
  14  Prefactor     46.197        67.254        .59010E-04   -1.4348    
  15  Prefactor     .10000E-03    28.779        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7825        .97785        .59531E-04   -1.5441    
  17  Prefactor     72.118        18.771        .47289E-04   -1.4007    
  18  norm          .10000E-03    1.0505        .13443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.218        12.998        .93832E-04   -1.4854    
  21  Prefactor     .10000E-03    10.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .61879        .23680        .37453E-03   -1.0719    
  23  Prefactor     1.2913        .16233        .19137E-03   -.83567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.52102e-09
Minuit parameter uncertainties:
  1  3.13162e-05
  2  4.45742e-06
  3  0.000667699
  4  6.14294
  5  5.46262
  6  8.17455
  7  4.0155e-05
  8  11.5934
  9  0.00491215
  10  74.0724
  11  4.7622
  12  57.7518
  13  4.31159
  14  67.3643
  15  0.000291826
  16  0.977864
  17  18.7727
  18  0.000101007
  19  3.05364e-05
  20  12.9996
  21  2.36558e-06
  22  0.237186
  23  0.162392
Done.

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

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.650e+01  1.159e+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:  1.291e+00  1.624e-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:  6.188e-01  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.24
Ra Dec: 332.817 -13.419
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 6.69e-08 +/- 4.69e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.11e-05

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

Saving results to:
/scratch/kocevski/217810/likelihoodResults_507859201_508118401_4FGL_J2211.2-1325_daily_bin1036.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) = 7239.28372515
delta logL = 0.0713022447508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7239.27943227
delta logL = 0.0755951286328

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.594       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0973       1.0000          .0000       10.000    
     3 'Normalizat'    .59560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3033       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=   7239.279     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      291 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.597        15.329        .10864E-03    .40614E-03
   2  Index         3.0968        1.1756        .86896E-02    .91835E-04
   3  Normalizat    .59565        .23720        .38125E-03    .49817E-03
   4  Prefactor     1.3032        .16581        .19062E-03    .11904E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5966
  Index      = 3.09685
  Normalizat = 0.595651
  Prefactor  = 1.30321
 **********
 **   18 **HESSE 
 **********

 FCN=   7239.279     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.597        13.648        .43455E-05   -1.4970    
   2  Index         3.0968        1.0470        .34758E-03   -.39048    
   3  Normalizat    .59565        .23616        .15250E-04   -1.0817    
   4  Prefactor     1.3032        .16519        .38124E-04   -.83212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08809e-10
Minuit parameter uncertainties:
  1  13.6509
  2  1.05614
  3  0.236557
  4  0.16526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217810': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7239.2794315
delta logL = 0.0755959020726

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.360e+01  1.365e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.097e+00  1.056e+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.303e+00  1.653e-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:  5.957e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.44
Ra Dec: 332.817 -13.419
Photon Index (Free Index): 3.10 +/- 1.06
Photon Flux (Free Index): 8.10e-08 +/- 6.16e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.02e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', photon_flux='6.69e-08', energy_flux2='1.55e-05', photon_flux_error='4.69e-08', dlogl='7.56e-02', energy_flux='1.58e-05', photon_flux2='8.10e-08', job_status='DONE', time_completed='2021-09-28 07:06:42.303647', photon_index_error2='1.06', photon_index2='3.10', ts='3.24', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='1.02e-05', EG='0.62', time_epoch_completed='1632838002.3', return_code='0', job_id='217810', GAL2='1.30', EG2='0.60', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='6.16e-08', ts2='3.44', photon_index='2.72' WHERE bin_id='1036' AND source_name='4FGL J2211.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:06:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 217810: <4FGL_J2211.2-1325_daily_bin1036> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2211.2-1325_daily_bin1036 332.817 -13.4189 507859201 508118401 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 :                                   679.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             264.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            989 sec.

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

