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


Performing analysis on: 4FGL_J2211.2-1325_daily_bin595
RA = 332.817, Dec = -13.4189
tmin = 393552001, tmax = 393811201
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='216254', job_status='RUN', time_executed='2021-09-28 06:46:22.414185', time_epoch_executed='1632836782.41' WHERE source_name='4FGL J2211.2-1325' and cadence='daily' and bin_id='595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/216254

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/216254/ft1_4FGL_J2211.2-1325_daily_bin595.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/216254/ft2_4FGL_J2211.2-1325_daily_bin595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/216254/ft1_4FGL_J2211.2-1325_daily_bin595.fits outfile=/scratch/kocevski/216254/ft1_filteredMKT_4FGL_J2211.2-1325_daily_bin595.fits ra=332.817 dec=-13.4189 rad=12.0 tmin=393552001.0 tmax=393811201.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.48
user 3.29
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/216254/ft2_4FGL_J2211.2-1325_daily_bin595.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/216254/ft1_filteredMKT_4FGL_J2211.2-1325_daily_bin595.fits evtable="EVENTS" outfile="/scratch/kocevski/216254/ft1_filtered_4FGL_J2211.2-1325_daily_bin595.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/216254/ft1_filtered_4FGL_J2211.2-1325_daily_bin595.fits" evtable="EVENTS" scfile=/scratch/kocevski/216254/ft2_4FGL_J2211.2-1325_daily_bin595.fits sctable="SC_DATA" outfile=/scratch/kocevski/216254/ltcube_393552001_393811201_4FGL_J2211.2-1325_daily_bin595.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/216254/ft2_4FGL_J2211.2-1325_daily_bin595.fits
.....................!
real 12.10
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/216254/ft1_filtered_4FGL_J2211.2-1325_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/216254/ft2_4FGL_J2211.2-1325_daily_bin595.fits sctable="SC_DATA" expcube=/scratch/kocevski/216254/ltcube_393552001_393811201_4FGL_J2211.2-1325_daily_bin595.fits outfile=/scratch/kocevski/216254/expmap_393552001_393811201_4FGL_J2211.2-1325_daily_bin595.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/216254/ltcube_393552001_393811201_4FGL_J2211.2-1325_daily_bin595.fits
.....................!
real 191.29
user 185.66
sys 5.06

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/216254/ft1_filtered_4FGL_J2211.2-1325_daily_bin595.fits scfile=/scratch/kocevski/216254/ft2_4FGL_J2211.2-1325_daily_bin595.fits outfile=/scratch/kocevski/216254/cmap_393552001_393811201_4FGL_J2211.2-1325_daily_bin595.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/216254/ft1_filtered_4FGL_J2211.2-1325_daily_bin595.fits scfile=/scratch/kocevski/216254/ft2_4FGL_J2211.2-1325_daily_bin595.fits outfile=/scratch/kocevski/216254/cmap_HighResolution_393552001_393811201_4FGL_J2211.2-1325_daily_bin595.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.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/216254/ft1_filtered_4FGL_J2211.2-1325_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/216254/ft2_4FGL_J2211.2-1325_daily_bin595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/216254/Model_4FGL_J2211.2-1325_daily_bin595.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/216254/ft1_filtered_4FGL_J2211.2-1325_daily_bin595.fits.....................!
real 55.44
user 54.06
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7376       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3376       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9624       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.152       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.256       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.547       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .95479       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0490       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.266       1.0000         .10000E-03   10000.    
    16 'norm      '    .89420       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3479       1.0000         .10000E-03   10000.    
    18 'norm      '    .40948       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6277       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1905       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1217       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78125       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=   5921.072     FROM MIGRAD    STATUS=FAILED       914 CALLS     3322 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7374        3.4961        .12035E-03    .24656E-04
   2  Prefactor     4.3372        4.9186        .17720E-03    .52930E-04
   3  Prefactor     .10000E-03    22.643        .18142E-02** at limit **
   4  norm          1.9626        3.6457        .19687E-03    .25986E-04
   5  Prefactor     10.151        6.1895        .12576E-03   -.13659E-03
   6  Prefactor     .10000E-03    18.996        .18142E-02** at limit **
   7  Prefactor     12.257        10.925        .11442E-03    .16890E-05
   8  Prefactor     .10000E-03    7.7095        .18142E-02** at limit **
   9  Prefactor     12.537        13.339        .11309E-03   -.14456E-03
  10  Prefactor     1.0039        77.774        .17675        .91515E-04
  11  Prefactor     .10000E-03    7.5649        .23672E-02** at limit **
  12  Prefactor     .10000E-03    21.724        .18142E-02** at limit **
  13  norm          2.0479        3.5366        .17664E-03    .54000E-04
  14  Prefactor     .10000E-03    30.739        .18142E-02** at limit **
  15  Prefactor     15.271        15.954        .10251E-03   -.12976E-04
  16  norm          .89484        1.0574        .79531E-04    .19526E-03
  17  Prefactor     2.2408        300.30        .26753E-03   -.89069E-04
  18  norm          .41708        10.004        .10165E-02    .56933E-02
  19  Prefactor     9.6172        21.554        .12915E-03   -.27024E-04
  20  Prefactor     3.1912        10.002        .11343E-02   -.80273E-04
  21  Prefactor     .10000E-03    11.762        .18142E-02** at limit **
  22  Normalizat    1.1218        .24606        .25880E-03   -.64530E-04
  23  Prefactor     .78119        .15362        .20383E-03   -.83383E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5921.072     FROM SIMPLEX   STATUS=UNCHANGED   1022 CALLS     4344 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7374        3.4961        .30834E-06   -1.5273    
   2  Prefactor     4.3372        4.9186        .48319E-06   -1.5291    
   3  Prefactor     .10000E-03    22.643        .65999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9626        3.6457        .21991E-06   -1.5428    
   5  Prefactor     10.151        6.1895        .21729E-06   -1.5071    
   6  Prefactor     .10000E-03    18.996        .40880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.257        10.925        .21505E-06   -1.5008    
   8  Prefactor     .10000E-03    7.7095        .23733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.537        13.339        .21449E-06   -1.5000    
  10  Prefactor     1.0039        77.774        .22115E-06   -1.5508    
  11  Prefactor     .10000E-03    7.5649        .19944E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.724        .50476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0479        3.5366        .21910E-06   -1.5422    
  14  Prefactor     .10000E-03    30.739        .75521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.271        15.954        .22859E-06   -1.4926    
  16  norm          .89484        1.0574        .22542E-06   -1.5519    
  17  Prefactor     2.2408        300.30        .26744E-05   -1.5409    
  18  norm          .41708        10.004        .41493E-06   -1.5579    
  19  Prefactor     9.6172        21.554        .27963E-06   -1.5088    
  20  Prefactor     3.1912        10.002        .26994E-06   -1.5351    
  21  Prefactor     .10000E-03    11.762        .44382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1218        .24606        .13679E-06   -.89055    
  23  Prefactor     .78119        .15362        .14711E-06   -1.0043    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5921.072     FROM MIGRAD    STATUS=CONVERGED    363 CALLS     4707 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7374        3.4961        .48138E-05   -.47233E-06
   2  Prefactor     4.3372        4.9185        .70879E-05   -.19247E-06
   3  Prefactor     .10000E-03    22.659        .36285E-03** at limit **
   4  norm          1.9626        3.6457        .78750E-05   -.28873E-06
   5  Prefactor     10.151        6.1896        .50304E-05   -.22600E-05
   6  Prefactor     .10000E-03    19.005        .36285E-03** at limit **
   7  Prefactor     12.257        10.925        .45770E-05   -.49678E-06
   8  Prefactor     .10000E-03    7.7120        .36285E-03** at limit **
   9  Prefactor     12.537        13.335        .45235E-05   -.17090E-04
  10  Prefactor     1.0039        77.045        .17783        .90376E-04
  11  Prefactor     .10000E-03    7.5843        .47344E-03** at limit **
  12  Prefactor     .10000E-03    21.725        .36285E-03** at limit **
  13  norm          2.0478        3.5355        .70655E-05   -.13194E-04
  14  Prefactor     .10000E-03    30.739        .36285E-03** at limit **
  15  Prefactor     15.271        15.954        .41004E-05     .0000    
  16  norm          .89483        1.0589        .31812E-05    .21442E-05
  17  Prefactor     2.2412        295.40        .10701E-04   -.63742E-06
  18  norm          .41706        9.7682        .20330E-03    .24226E-03
  19  Prefactor     9.6172        21.348        .51660E-05    .22007E-05
  20  Prefactor     3.1912        9.9988        .45371E-04    .50114E-06
  21  Prefactor     .10000E-03    11.764        .36285E-03** at limit **
  22  Normalizat    1.1218        .24637        .10352E-04   -.10543E-04
  23  Prefactor     .78119        .15375        .81533E-05   -.13107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.73744
  Prefactor  = 4.33719
  Prefactor  = 0.0001
  norm       = 1.96262
  Prefactor  = 10.1514
  Prefactor  = 0.0001
  Prefactor  = 12.2567
  Prefactor  = 0.0001
  Prefactor  = 12.5374
  Prefactor  = 1.00391
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.04785
  Prefactor  = 0.0001
  Prefactor  = 15.271
  norm       = 0.894834
  Prefactor  = 2.24116
  norm       = 0.417063
  Prefactor  = 9.61722
  Prefactor  = 3.19122
  Prefactor  = 0.0001
  Normalizat = 1.12179
  Prefactor  = 0.781194
 **********
 **   18 **HESSE 
 **********

 FCN=   5921.072     FROM HESSE     STATUS=OK           358 CALLS     5065 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7374        3.4953        .96277E-06   -1.5273    
   2  Prefactor     4.3372        4.9185        .70879E-05   -1.5291    
   3  Prefactor     .10000E-03    22.660        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9626        3.6459        .15750E-05   -1.5428    
   5  Prefactor     10.151        6.1872        .10061E-05   -1.5071    
   6  Prefactor     .10000E-03    19.006        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.257        10.918        .91539E-06   -1.5008    
   8  Prefactor     .10000E-03    7.7121        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.537        13.327        .90471E-06   -1.5000    
  10  Prefactor     1.0039        77.256        .17752       -1.5508    
  11  Prefactor     .10000E-03    7.5850        .94689E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.725        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0478        3.5350        .14131E-05   -1.5422    
  14  Prefactor     .10000E-03    30.739        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.271        15.951        .41004E-05   -1.4926    
  16  norm          .89483        1.0595        .63625E-06   -1.5519    
  17  Prefactor     2.2412        287.77        .21402E-05   -1.5409    
  18  norm          .41706        9.5149        .40660E-04   -1.5579    
  19  Prefactor     9.6172        21.309        .10332E-05   -1.5088    
  20  Prefactor     3.1912        9.9953        .18148E-05   -1.5351    
  21  Prefactor     .10000E-03    11.764        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1218        .24509        .20704E-05   -.89055    
  23  Prefactor     .78119        .15301        .16307E-05   -1.0043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59371e-10
Minuit parameter uncertainties:
  1  3.49546
  2  4.91897
  3  1.32252e-07
  4  3.64636
  5  6.18763
  6  2.00746e-07
  7  10.9193
  8  4.17857e-08
  9  13.3306
  10  17.6361
  11  2.97898e-06
  12  1.21628e-07
  13  3.53538
  14  1.7519e-07
  15  15.9557
  16  1.05957
  17  51.0429
  18  3.98436
  19  21.3254
  20  10.0005
  21  4.21874e-07
  22  0.245336
  23  0.153096
Done.

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

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  4.179e-08  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:  7.812e-01  1.531e-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.122e+00  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 332.817 -13.419
Photon Flux Upper Limit: 8.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/216254/likelihoodResults_393552001_393811201_4FGL_J2211.2-1325_daily_bin595.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) = 5921.07254564
delta logL = -0.000618171785391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5921.07192745
delta logL = 1.70584826265e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7358       1.0000          .0000       10.000    
     3 'Normalizat'    1.1218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78121       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=   5921.072     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      261 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .70404E-01    .66572E-01** at limit **
   2  Index         3.7328        7.4556        .50000       -.16778E-06
   3  Normalizat    1.1218        .83598E-03    .25879E-03   -.27648E-03
   4  Prefactor     .78119        .56264E-03    .20384E-03   -.41137E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.73279
  Normalizat = 1.12178
  Prefactor  = 0.781194
 **********
 **   18 **HESSE 
 **********

 FCN=   5921.072     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      292 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    220.48        .23039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7328        6.8542        .50000       -.25624    
   3  Normalizat    1.1218        .23544E-01    .51759E-04   -.89055    
   4  Prefactor     .78119        .15846E-01    .40767E-04   -1.0043    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.96014e-09
Minuit parameter uncertainties:
  1  4.12312e-05
  2  2163.59
  3  0.0235443
  4  0.015846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/216254': 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) = 5921.07192606
delta logL = 1.40868360177e-06

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  4.123e-05  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.733e+00  2.164e+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:  7.812e-01  1.585e-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.122e+00  2.354e-02  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/216254/cmap_HighResolution_393552001_393811201_4FGL_J2211.2-1325_daily_bin595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.04e-03', job_status='DONE', photon_flux_upper_limit='8.93e-08', time_completed='2021-09-28 06:58:25.167844', job_id='216254', GAL2='0.78', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632837505.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.41e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='595' AND source_name='4FGL J2211.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:58:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 216254: <4FGL_J2211.2-1325_daily_bin595> in cluster <slac> Done

Job <4FGL_J2211.2-1325_daily_bin595> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:45:12 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:45:13 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:45:13 2021
Terminated at Tue Sep 28 06:58:25 2021
Results reported at Tue Sep 28 06:58:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2211.2-1325_daily_bin595 332.817 -13.4189 393552001 393811201 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 :                                   722.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            793 sec.

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

