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


Performing analysis on: 4FGL_J2211.2-1325_daily_bin239
RA = 332.817, Dec = -13.4189
tmin = 301276801, tmax = 301536001
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='214757', job_status='RUN', time_executed='2021-09-28 06:41:38.537769', time_epoch_executed='1632836498.54' WHERE source_name='4FGL J2211.2-1325' and cadence='daily' and bin_id='239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214757/ft1_4FGL_J2211.2-1325_daily_bin239.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214757/ft2_4FGL_J2211.2-1325_daily_bin239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214757/ft1_4FGL_J2211.2-1325_daily_bin239.fits outfile=/scratch/kocevski/214757/ft1_filteredMKT_4FGL_J2211.2-1325_daily_bin239.fits ra=332.817 dec=-13.4189 rad=12.0 tmin=301276801.0 tmax=301536001.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.57
user 4.25
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/214757/ft2_4FGL_J2211.2-1325_daily_bin239.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/214757/ft1_filteredMKT_4FGL_J2211.2-1325_daily_bin239.fits evtable="EVENTS" outfile="/scratch/kocevski/214757/ft1_filtered_4FGL_J2211.2-1325_daily_bin239.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.59
user 0.30
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214757/ft1_filtered_4FGL_J2211.2-1325_daily_bin239.fits" evtable="EVENTS" scfile=/scratch/kocevski/214757/ft2_4FGL_J2211.2-1325_daily_bin239.fits sctable="SC_DATA" outfile=/scratch/kocevski/214757/ltcube_301276801_301536001_4FGL_J2211.2-1325_daily_bin239.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/214757/ft2_4FGL_J2211.2-1325_daily_bin239.fits
.....................!
real 12.27
user 11.85
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214757/ft1_filtered_4FGL_J2211.2-1325_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/214757/ft2_4FGL_J2211.2-1325_daily_bin239.fits sctable="SC_DATA" expcube=/scratch/kocevski/214757/ltcube_301276801_301536001_4FGL_J2211.2-1325_daily_bin239.fits outfile=/scratch/kocevski/214757/expmap_301276801_301536001_4FGL_J2211.2-1325_daily_bin239.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/214757/ltcube_301276801_301536001_4FGL_J2211.2-1325_daily_bin239.fits
.....................!
real 190.34
user 184.88
sys 5.09

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/214757/ft1_filtered_4FGL_J2211.2-1325_daily_bin239.fits scfile=/scratch/kocevski/214757/ft2_4FGL_J2211.2-1325_daily_bin239.fits outfile=/scratch/kocevski/214757/cmap_301276801_301536001_4FGL_J2211.2-1325_daily_bin239.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214757/ft1_filtered_4FGL_J2211.2-1325_daily_bin239.fits scfile=/scratch/kocevski/214757/ft2_4FGL_J2211.2-1325_daily_bin239.fits outfile=/scratch/kocevski/214757/cmap_HighResolution_301276801_301536001_4FGL_J2211.2-1325_daily_bin239.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/214757/ft1_filtered_4FGL_J2211.2-1325_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/214757/ft2_4FGL_J2211.2-1325_daily_bin239.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214757/Model_4FGL_J2211.2-1325_daily_bin239.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/214757/ft1_filtered_4FGL_J2211.2-1325_daily_bin239.fits.....................!
real 57.46
user 56.17
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2289       1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.370       1.0000         .10000E-03   10000.    
     4 'norm      '    3.5603       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1186       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.479       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.297       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1661       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8642       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.868       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.216       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .38836       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21100E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .29712E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.992       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .90943       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91098       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=   6100.755     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2269 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7955       -.34721E-07** at limit **
   2  Prefactor     5.2288        10.213        .15578E-06    .25862E-06
   3  Prefactor     44.363        18.666        .15417E-06    .41400E-04
   4  norm          3.5615        3.9598       -.82566E-08    .24490E-05
   5  Prefactor     5.1197        5.1975        .18370E-06    .42967E-04
   6  Prefactor     .10000E-03    8.4040       -.20836E-06** at limit **
   7  Prefactor     14.478        12.516        .16722E-06    .21012E-04
   8  Prefactor     11.298        10.363        .16679E-06    .45578E-04
   9  Prefactor     1.1656        13.166        .14392E-04    .57940E-04
  10  Prefactor     .10000E-03    38.876       -.25240E-05** at limit **
  11  Prefactor     8.8637        4.7303       -.73960E-06   -.16151E-03
  12  Prefactor     .10000E-03    24.702        .23220E-05** at limit **
  13  norm          13.869        4.9253       -.19751E-06    .15229E-04
  14  Prefactor     17.173        111.70        .11792E-04    .14557E-04
  15  Prefactor     .10000E-03    6.8147       -.80310E-07** at limit **
  16  norm          .38862        .65819        .36432E-07   -.16055E-03
  17  Prefactor     .10000E-03    17.533       -.17099E-05** at limit **
  18  norm          .10000E-03    .98836        .14650E-05** at limit **
  19  Prefactor     14.040        22.851        .25959E-05   -.70171E-04
  20  Prefactor     .10000E-03    10.261        .24805E-08** at limit **
  21  Prefactor     .10000E-03    6.2890       -.62421E-07** at limit **
  22  Normalizat    .90926        .20180       -.13918E-05   -.61510E-04
  23  Prefactor     .91111        .13024        .40820E-06    .25444E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.22879
  Prefactor  = 44.363
  norm       = 3.56146
  Prefactor  = 5.11966
  Prefactor  = 0.0001
  Prefactor  = 14.4783
  Prefactor  = 11.2985
  Prefactor  = 1.16556
  Prefactor  = 0.0001
  Prefactor  = 8.8637
  Prefactor  = 0.0001
  norm       = 13.8685
  Prefactor  = 17.1734
  Prefactor  = 0.0001
  norm       = 0.388622
  Prefactor  = 0.000100001
  norm       = 0.000100005
  Prefactor  = 14.0399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.909259
  Prefactor  = 0.91111
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.755     FROM HESSE     STATUS=OK           378 CALLS     2647 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8061        .10221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.2288        10.211        .17579E-03   -1.5251    
   3  Prefactor     44.363        18.700        .60188E-04   -1.4375    
   4  norm          3.5615        3.9605        .15991E-03   -1.5331    
   5  Prefactor     5.1197        5.1902        .17073E-03   -1.5255    
   6  Prefactor     .10000E-03    8.4363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.478        12.545        .10526E-03   -1.4947    
   8  Prefactor     11.298        10.395        .11919E-03   -1.5036    
   9  Prefactor     1.1656        13.699        .21287E-02   -1.5492    
  10  Prefactor     .10000E-03    38.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8637        4.7369        .11650E-03   -1.5112    
  12  Prefactor     .10000E-03    24.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.869        4.9267        .95893E-04   -1.4963    
  14  Prefactor     17.173        112.20        .96527E-04   -1.4879    
  15  Prefactor     .10000E-03    6.8320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .38862        .55293        .79001E-03   -1.5583    
  17  Prefactor     .10000E-03    18.111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.1257        .12047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.040        23.619        .10708E-03   -1.4958    
  20  Prefactor     .10000E-03    10.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.2953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .90926        .23865        .29082E-03   -.96136    
  23  Prefactor     .91111        .15509        .19857E-03   -.95754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64542e-09
Minuit parameter uncertainties:
  1  4.04055e-06
  2  10.2144
  3  18.7029
  4  3.96083
  5  5.19062
  6  1.97359e-05
  7  12.5472
  8  10.3967
  9  7.9936
  10  7.34603e-05
  11  4.73712
  12  1.9004e-05
  13  4.92683
  14  88.0313
  15  2.32991e-05
  16  0.552941
  17  0.000252021
  18  0.000319738
  19  23.635
  20  1.31661e-06
  21  3.54773e-06
  22  0.238926
  23  0.155168
Done.

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

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.130e+01  1.040e+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.111e-01  1.552e-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.093e-01  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.09
Ra Dec: 332.817 -13.419
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 4.58e-08 +/- 4.21e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 9.95e-06

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

Saving results to:
/scratch/kocevski/214757/likelihoodResults_301276801_301536001_4FGL_J2211.2-1325_daily_bin239.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) = 6100.38014334
delta logL = 0.374877363769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6100.36978592
delta logL = 0.385234786919

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0524       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9962       1.0000          .0000       10.000    
     3 'Normalizat'    .85276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93871       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=   6100.370     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      247 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0524        64.351        .44722E-02    .44308E-03
   2  Index         3.9963        4.0651        .20519        .10253E-03
   3  Normalizat    .85278        .62975E-01    .67598E-01    .38150E-04
   4  Prefactor     .93870        .42013E-01    .45497E-01   -.28970E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.0524
  Index      = 3.99629
  Normalizat = 0.852782
  Prefactor  = 0.938696
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.370     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      280 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0524        118.27        .11577E-03   -1.5258    
   2  Index         3.9963        6.8366        .70457E-02   -.20212    
   3  Normalizat    .85278        .25789        .29906E-03   -.98140    
   4  Prefactor     .93870        .17523        .19595E-03   -.94802    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.18412e-10
Minuit parameter uncertainties:
  1  48.9986
  2  8.47435
  3  0.258258
  4  0.175332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214757': 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) = 6100.36978588
delta logL = 0.385234819482

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  5.052e+00  4.900e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.996e+00  8.474e+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:  9.387e-01  1.753e-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.528e-01  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.98
Ra Dec: 332.817 -13.419
Photon Index (Free Index): 4.00 +/- 8.47
Photon Flux (Free Index): 8.58e-08 +/- 8.48e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.28e-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/214757/cmap_HighResolution_301276801_301536001_4FGL_J2211.2-1325_daily_bin239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', photon_flux='4.58e-08', energy_flux2='1.28e-05', photon_flux_error='4.21e-08', dlogl='3.85e-01', energy_flux='1.08e-05', photon_flux2='8.58e-08', job_status='DONE', time_completed='2021-09-28 06:51:59.474458', photon_index_error2='8.47', photon_index2='4.00', ts='2.09', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.28e-05', EG='0.91', time_epoch_completed='1632837119.47', return_code='0', job_id='214757', GAL2='0.94', EG2='0.85', return_code2='102', energy_flux_error='9.95e-06', photon_flux_error2='8.48e-08', ts2='2.98', photon_index='2.72' WHERE bin_id='239' AND source_name='4FGL J2211.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:51:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 214757: <4FGL_J2211.2-1325_daily_bin239> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2211.2-1325_daily_bin239 332.817 -13.4189 301276801 301536001 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 :                                   595.11 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             319.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            704 sec.

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

