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


Performing analysis on: 4FGL_J2211.2-1325_daily_bin1285
RA = 332.817, Dec = -13.4189
tmin = 572400001, tmax = 572659201
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='218223', job_status='RUN', time_executed='2021-09-28 06:52:05.317951', time_epoch_executed='1632837125.32' WHERE source_name='4FGL J2211.2-1325' and cadence='daily' and bin_id='1285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/218223

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/218223/ft1_4FGL_J2211.2-1325_daily_bin1285.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/218223/ft2_4FGL_J2211.2-1325_daily_bin1285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/218223/ft1_4FGL_J2211.2-1325_daily_bin1285.fits outfile=/scratch/kocevski/218223/ft1_filteredMKT_4FGL_J2211.2-1325_daily_bin1285.fits ra=332.817 dec=-13.4189 rad=12.0 tmin=572400001.0 tmax=572659201.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.67
user 3.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/218223/ft2_4FGL_J2211.2-1325_daily_bin1285.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/218223/ft1_filteredMKT_4FGL_J2211.2-1325_daily_bin1285.fits evtable="EVENTS" outfile="/scratch/kocevski/218223/ft1_filtered_4FGL_J2211.2-1325_daily_bin1285.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/218223/ft1_filtered_4FGL_J2211.2-1325_daily_bin1285.fits" evtable="EVENTS" scfile=/scratch/kocevski/218223/ft2_4FGL_J2211.2-1325_daily_bin1285.fits sctable="SC_DATA" outfile=/scratch/kocevski/218223/ltcube_572400001_572659201_4FGL_J2211.2-1325_daily_bin1285.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/218223/ft2_4FGL_J2211.2-1325_daily_bin1285.fits
.....................!
real 12.12
user 11.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/218223/ft1_filtered_4FGL_J2211.2-1325_daily_bin1285.fits evtable="EVENTS" scfile=/scratch/kocevski/218223/ft2_4FGL_J2211.2-1325_daily_bin1285.fits sctable="SC_DATA" expcube=/scratch/kocevski/218223/ltcube_572400001_572659201_4FGL_J2211.2-1325_daily_bin1285.fits outfile=/scratch/kocevski/218223/expmap_572400001_572659201_4FGL_J2211.2-1325_daily_bin1285.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/218223/ltcube_572400001_572659201_4FGL_J2211.2-1325_daily_bin1285.fits
.....................!
real 191.58
user 185.87
sys 5.38

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/218223/ft1_filtered_4FGL_J2211.2-1325_daily_bin1285.fits scfile=/scratch/kocevski/218223/ft2_4FGL_J2211.2-1325_daily_bin1285.fits outfile=/scratch/kocevski/218223/cmap_572400001_572659201_4FGL_J2211.2-1325_daily_bin1285.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/218223/ft1_filtered_4FGL_J2211.2-1325_daily_bin1285.fits scfile=/scratch/kocevski/218223/ft2_4FGL_J2211.2-1325_daily_bin1285.fits outfile=/scratch/kocevski/218223/cmap_HighResolution_572400001_572659201_4FGL_J2211.2-1325_daily_bin1285.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/218223/ft1_filtered_4FGL_J2211.2-1325_daily_bin1285.fits evtable="EVENTS" scfile=/scratch/kocevski/218223/ft2_4FGL_J2211.2-1325_daily_bin1285.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/218223/Model_4FGL_J2211.2-1325_daily_bin1285.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/218223/ft1_filtered_4FGL_J2211.2-1325_daily_bin1285.fits.....................!
real 66.13
user 64.76
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9498       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12951E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.490       1.0000         .10000E-03   10000.    
     4 'norm      '    3.8673       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.788       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6266       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.789       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    504.85       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.414       1.0000         .10000E-03   10000.    
    14 'Prefactor '    78.005       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.424       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2240       1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.914       1.0000         .10000E-03   10000.    
    18 'norm      '    .25467E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11403E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0549       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0394       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97045       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3128       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=   6983.659     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2650 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9493        6.0899        .44723E-06    .54702E-04
   2  Prefactor     .10000E-03    37.699        .16205E-06** at limit **
   3  Prefactor     26.482        21.147       -.15763E-07   -.25754E-04
   4  norm          3.8669        4.0974       -.57799E-07    .39795E-04
   5  Prefactor     .10000E-03    2.7720        .15979E-07** at limit **
   6  Prefactor     10.788        10.905        .80383E-08   -.10442E-05
   7  Prefactor     5.6250        8.9913        .27493E-05   -.51664E-03
   8  Prefactor     18.786        19.715        .88651E-07   -.25193E-04
   9  Prefactor     .10000E-03    12.052        .48195E-07** at limit **
  10  Prefactor     504.84        176.83       -.39040E-06   -.19016E-04
  11  Prefactor     .10000E-03    2.4321       -.33527E-07** at limit **
  12  Prefactor     .10000E-03    19.742        .12696E-06** at limit **
  13  norm          12.417        6.8753        .34954E-06   -.37308E-04
  14  Prefactor     77.959        74.272       -.60719E-05   -.17594E-03
  15  Prefactor     36.424        21.695       -.12511E-06   -.41196E-04
  16  norm          1.2240        .88737        .11929E-08   -.89786E-04
  17  Prefactor     43.893        21.986       -.17186E-05   -.85806E-04
  18  norm          .10047E-03    .72777        .30468E-06** at limit **
  19  Prefactor     .10000E-03    97.156        .16025E-05** at limit **
  20  Prefactor     3.0547        7.4422        .94748E-07   -.51304E-04
  21  Prefactor     1.0104        16.578        .15740E-05   -.11388E-03
  22  Normalizat    .97039        .26323       -.75189E-06   -.73970E-04
  23  Prefactor     1.3129        .16446       -.26808E-07   -.12237E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.94931
  Prefactor  = 0.0001
  Prefactor  = 26.4822
  norm       = 3.8669
  Prefactor  = 0.0001
  Prefactor  = 10.7876
  Prefactor  = 5.62499
  Prefactor  = 18.7861
  Prefactor  = 0.0001
  Prefactor  = 504.842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4174
  Prefactor  = 77.9595
  Prefactor  = 36.4237
  norm       = 1.22402
  Prefactor  = 43.8932
  norm       = 0.000100474
  Prefactor  = 0.0001
  Prefactor  = 3.05475
  Prefactor  = 1.01038
  Normalizat = 0.970392
  Prefactor  = 1.31292
 **********
 **   18 **HESSE 
 **********

 FCN=   6983.659     FROM HESSE     STATUS=OK           386 CALLS     3036 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9493        6.0859        .18077E-03   -1.5263    
   2  Prefactor     .10000E-03    39.382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.482        21.203        .77834E-04   -1.4678    
   4  norm          3.8669        4.1020        .16993E-03   -1.5315    
   5  Prefactor     .10000E-03    2.7815        .13584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.788        10.903        .12198E-03   -1.5051    
   7  Prefactor     5.6250        8.9543        .84678E-03   -1.5234    
   8  Prefactor     18.786        19.778        .92399E-04   -1.4841    
   9  Prefactor     .10000E-03    12.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     504.84        176.74        .91348E-04   -1.1176    
  11  Prefactor     .10000E-03    5.4181        .25207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.417        6.8556        .11369E-03   -1.5003    
  14  Prefactor     77.959        77.102        .22734E-03   -1.3940    
  15  Prefactor     36.424        21.814        .66405E-04   -1.4500    
  16  norm          1.2240        .87919        .64404E-04   -1.5487    
  17  Prefactor     43.893        31.768        .60498E-04   -1.4382    
  18  norm          .10047E-03    4.3708        .21235E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    98.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0547        7.4208        .23211E-03   -1.5358    
  21  Prefactor     1.0104        181.58        .62681E-02   -1.5507    
  22  Normalizat    .97039        .31117        .38190E-03   -.94029    
  23  Prefactor     1.3129        .19496        .22445E-03   -.82924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12229e-09
Minuit parameter uncertainties:
  1  6.08667
  2  2.27507e-05
  3  21.209
  4  4.10232
  5  1.34771e-06
  6  10.9051
  7  8.95642
  8  19.7849
  9  1.71643e-05
  10  176.929
  11  9.4676e-05
  12  1.45729e-05
  13  6.85604
  14  77.2007
  15  21.8192
  16  0.879198
  17  31.7803
  18  0.00287897
  19  0.000374814
  20  7.42302
  21  27.1722
  22  0.311754
  23  0.195072
Done.

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

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.879e+01  1.978e+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.313e+00  1.951e-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.704e-01  3.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 332.817 -13.419
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 7.62e-08 +/- 8.01e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.89e-05

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

Saving results to:
/scratch/kocevski/218223/likelihoodResults_572400001_572659201_4FGL_J2211.2-1325_daily_bin1285.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) = 6983.51720766
delta logL = 0.142036612307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6983.50532444
delta logL = 0.153919830746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.125       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4905       1.0000          .0000       10.000    
     3 'Normalizat'    .93160       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3345       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=   6983.505     FROM MIGRAD    STATUS=FAILED        93 CALLS      314 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.137        40.512        .12012E-03   -.19213E-04
   2  Index         3.4903        2.9200        .96109E-02    .37166E-03
   3  Normalizat    .93080        .30245        .38898E-03   -.11086E-03
   4  Prefactor     1.3351        .20181        .22286E-03    .22591E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6983.505     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      388 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.137        40.512        .39764E-03   -1.5040    
   2  Index         3.4903        2.9200        .21277E-02   -.30673    
   3  Normalizat    .93080        .30245        .40882E-03   -.95386    
   4  Prefactor     1.3351        .20181        .21951E-03   -.82271    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6983.505     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      424 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.137        23.982        .48046E-05    .43065E-04
   2  Index         3.4903        1.8077        .19222E-02   -.65946E-05
   3  Normalizat    .93080        .29927        .15559E-04   -.58453E-05
   4  Prefactor     1.3350        .19709        .44573E-04    .19997E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1371
  Index      = 3.49028
  Normalizat = 0.930803
  Prefactor  = 1.33505
 **********
 **   18 **HESSE 
 **********

 FCN=   6983.505     FROM HESSE     STATUS=OK            23 CALLS      447 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.137        22.427        .96093E-06   -1.5040    
   2  Index         3.4903        1.6960        .76887E-04   -.30673    
   3  Normalizat    .93080        .29911        .31119E-05   -.95386    
   4  Prefactor     1.3350        .19682        .89146E-05   -.82271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93302e-11
Minuit parameter uncertainties:
  1  22.4442
  2  1.73394
  3  0.299649
  4  0.19693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/218223': 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) = 6983.50532035
delta logL = 0.153923926158

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.114e+01  2.244e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.490e+00  1.734e+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.335e+00  1.969e-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.308e-01  2.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.50
Ra Dec: 332.817 -13.419
Photon Index (Free Index): 3.49 +/- 1.73
Photon Flux (Free Index): 1.03e-07 +/- 9.81e-08
Energy Flux (Free Index): 1.72e-05 +/- 1.65e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/218223/cmap_HighResolution_572400001_572659201_4FGL_J2211.2-1325_daily_bin1285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-02', comment='SUCCESS', photon_flux='7.62e-08', energy_flux2='1.72e-05', photon_flux_error='8.01e-08', dlogl='1.54e-01', energy_flux='1.80e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-28 07:04:19.588347', photon_index_error2='1.73', photon_index2='3.49', ts='1.12', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='2.28e-07', energy_flux_error2='1.65e-05', EG='0.97', time_epoch_completed='1632837859.59', return_code='0', job_id='218223', GAL2='1.34', EG2='0.93', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='9.81e-08', ts2='1.50', photon_index='2.72' WHERE bin_id='1285' AND source_name='4FGL J2211.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:04:19 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2211.2-1325_daily_bin1285 332.817 -13.4189 572400001 572659201 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 :                                   667.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            809 sec.

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

