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


Performing analysis on: 4FGL_J2211.2-1325_daily_bin827
RA = 332.817, Dec = -13.4189
tmin = 453686401, tmax = 453945601
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='216477', job_status='RUN', time_executed='2021-09-28 06:47:34.968468', time_epoch_executed='1632836854.97' WHERE source_name='4FGL J2211.2-1325' and cadence='daily' and bin_id='827'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/216477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/216477/ft1_4FGL_J2211.2-1325_daily_bin827.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/216477/ft2_4FGL_J2211.2-1325_daily_bin827.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/216477/ft1_4FGL_J2211.2-1325_daily_bin827.fits outfile=/scratch/kocevski/216477/ft1_filteredMKT_4FGL_J2211.2-1325_daily_bin827.fits ra=332.817 dec=-13.4189 rad=12.0 tmin=453686401.0 tmax=453945601.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.59
user 3.34
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/216477/ft2_4FGL_J2211.2-1325_daily_bin827.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/216477/ft1_filteredMKT_4FGL_J2211.2-1325_daily_bin827.fits evtable="EVENTS" outfile="/scratch/kocevski/216477/ft1_filtered_4FGL_J2211.2-1325_daily_bin827.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/216477/ft1_filtered_4FGL_J2211.2-1325_daily_bin827.fits" evtable="EVENTS" scfile=/scratch/kocevski/216477/ft2_4FGL_J2211.2-1325_daily_bin827.fits sctable="SC_DATA" outfile=/scratch/kocevski/216477/ltcube_453686401_453945601_4FGL_J2211.2-1325_daily_bin827.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/216477/ft2_4FGL_J2211.2-1325_daily_bin827.fits
.....................!
real 12.05
user 11.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/216477/ft1_filtered_4FGL_J2211.2-1325_daily_bin827.fits evtable="EVENTS" scfile=/scratch/kocevski/216477/ft2_4FGL_J2211.2-1325_daily_bin827.fits sctable="SC_DATA" expcube=/scratch/kocevski/216477/ltcube_453686401_453945601_4FGL_J2211.2-1325_daily_bin827.fits outfile=/scratch/kocevski/216477/expmap_453686401_453945601_4FGL_J2211.2-1325_daily_bin827.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/216477/ltcube_453686401_453945601_4FGL_J2211.2-1325_daily_bin827.fits
.....................!
real 190.45
user 185.47
sys 4.48

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/216477/ft1_filtered_4FGL_J2211.2-1325_daily_bin827.fits scfile=/scratch/kocevski/216477/ft2_4FGL_J2211.2-1325_daily_bin827.fits outfile=/scratch/kocevski/216477/cmap_453686401_453945601_4FGL_J2211.2-1325_daily_bin827.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=332.817 yref=-13.4189 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/216477/ft1_filtered_4FGL_J2211.2-1325_daily_bin827.fits scfile=/scratch/kocevski/216477/ft2_4FGL_J2211.2-1325_daily_bin827.fits outfile=/scratch/kocevski/216477/cmap_HighResolution_453686401_453945601_4FGL_J2211.2-1325_daily_bin827.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9606       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.157       1.0000         .10000E-03   10000.    
     4 'norm      '    .91636       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7279       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.605       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9420       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3175       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.137       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .71740       1.0000         .10000E-03   10000.    
    12 'Prefactor '    103.05       1.0000         .10000E-03   10000.    
    13 'norm      '    10.128       1.0000         .10000E-03   10000.    
    14 'Prefactor '    66.817       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3322       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4536       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.883       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.176       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .76642       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0131       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=   6282.496     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2529 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9607        4.9323        .40082E-07   -.14557E-06
   2  Prefactor     .10000E-03    3.7718        .24917E-07** at limit **
   3  Prefactor     26.157        19.697       -.80466E-06   -.16213E-03
   4  norm          .91855        10.250        .51232E-05   -.53726E-04
   5  Prefactor     8.7282        5.8904       -.56522E-07   -.14759E-03
   6  Prefactor     20.606        18.351       -.36868E-07   -.46832E-04
   7  Prefactor     5.9428        10.587        .14308E-06   -.15302E-04
   8  Prefactor     6.3180        11.348        .15922E-06   -.39246E-04
   9  Prefactor     28.132        17.905       -.35287E-06   -.65466E-03
  10  Prefactor     .10000E-03    26.022       -.26194E-05** at limit **
  11  Prefactor     .70798        6.6016        .25530E-05   -.64660E-03
  12  Prefactor     103.05        73.281        .50903E-06    .42809E-04
  13  norm          10.128        4.6623        .40276E-07   -.56904E-03
  14  Prefactor     66.803        83.513       -.22120E-05   -.16930E-03
  15  Prefactor     5.3331        13.399        .21076E-06   -.96325E-05
  16  norm          3.4537        1.2199        .92662E-09   -.47260E-04
  17  Prefactor     .10000E-03    17.202       -.84211E-06** at limit **
  18  norm          .10000E-03    .40113        .63171E-07** at limit **
  19  Prefactor     .10001E-03    20.499        .36710E-05** at limit **
  20  Prefactor     10.884        10.316        .17863E-07   -.25534E-04
  21  Prefactor     16.177        17.645        .24342E-06    .39308E-04
  22  Normalizat    .76633        .22415        .17472E-06   -.24925E-03
  23  Prefactor     1.0132        .14126       -.32715E-06   -.33980E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.9607
  Prefactor  = 0.0001
  Prefactor  = 26.1566
  norm       = 0.91855
  Prefactor  = 8.72823
  Prefactor  = 20.6055
  Prefactor  = 5.94276
  Prefactor  = 6.31795
  Prefactor  = 28.1323
  Prefactor  = 0.000100005
  Prefactor  = 0.707983
  Prefactor  = 103.052
  norm       = 10.1277
  Prefactor  = 66.8026
  Prefactor  = 5.33308
  norm       = 3.45372
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 10.8838
  Prefactor  = 16.1773
  Normalizat = 0.76633
  Prefactor  = 1.01316
 **********
 **   18 **HESSE 
 **********

 FCN=   6282.496     FROM HESSE     STATUS=OK           378 CALLS     2907 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9607        4.9329        .15506E-03   -1.5220    
   2  Prefactor     .10000E-03    3.7838        .15034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.157        19.729        .78328E-04   -1.4685    
   4  norm          .91855        11.286        .50121E-03   -1.5516    
   5  Prefactor     8.7282        5.8867        .13568E-03   -1.5117    
   6  Prefactor     20.606        18.332        .88237E-04   -1.4800    
   7  Prefactor     5.9428        10.610        .16473E-03   -1.5220    
   8  Prefactor     6.3180        11.352        .15970E-03   -1.5205    
   9  Prefactor     28.132        16.940        .75527E-04   -1.4647    
  10  Prefactor     .10000E-03    27.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .70798        9.5913        .28700E-02   -1.5540    
  12  Prefactor     103.05        73.427        .39609E-04   -1.3674    
  13  norm          10.128        4.6383        .10690E-03   -1.5071    
  14  Prefactor     66.803        84.057        .49101E-04   -1.4071    
  15  Prefactor     5.3331        13.419        .17405E-03   -1.5246    
  16  norm          3.4537        1.2176        .49025E-04   -1.5336    
  17  Prefactor     .10000E-03    17.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .69261        .96461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    22.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.884        10.311        .12144E-03   -1.5048    
  21  Prefactor     16.177        17.639        .99582E-04   -1.4903    
  22  Normalizat    .76633        .25921        .33479E-03   -1.0133    
  23  Prefactor     1.0132        .16463        .20087E-03   -.92292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56591e-09
Minuit parameter uncertainties:
  1  4.93326
  2  2.63768e-06
  3  19.7338
  4  6.4407
  5  5.88705
  6  18.3369
  7  10.6135
  8  11.3561
  9  16.9426
  10  0.000702346
  11  5.21235
  12  73.492
  13  4.63848
  14  84.2072
  15  13.4263
  16  1.2176
  17  0.000228726
  18  5.01398e-06
  19  0.00085434
  20  10.313
  21  17.6444
  22  0.259629
  23  0.164717
Done.

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

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  6.318e+00  1.136e+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.013e+00  1.647e-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:  7.663e-01  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/216477/likelihoodResults_453686401_453945601_4FGL_J2211.2-1325_daily_bin827.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) = 6282.47176866
delta logL = 0.0246199006588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6282.46993426
delta logL = 0.0264542948353

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8160       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0585       1.0000          .0000       10.000    
     3 'Normalizat'    .75635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0175       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=   6282.470     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      227 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8225        380.42        .41633E-02    .14136E-03
   2  Index         3.0554        5.6313        .25110        .44736E-04
   3  Normalizat    .75658        .63232E-01    .76079E-01    .28539E-04
   4  Prefactor     1.0174        .43369E-01    .42394E-01    .46906E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.82249
  Index      = 3.05537
  Normalizat = 0.756583
  Prefactor  = 1.01744
 **********
 **   18 **HESSE 
 **********

 FCN=   6282.470     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8225        11.656        .16653E-03   -1.5225    
   2  Index         3.0554        1.5900        .15259E-01   -.39947    
   3  Normalizat    .75658        .24383        .33677E-03   -1.0170    
   4  Prefactor     1.0174        .16384        .20049E-03   -.92150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2717e-12
Minuit parameter uncertainties:
  1  11.6601
  2  1.62336
  3  0.24418
  4  0.163921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/216477': 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) = 6282.46993174
delta logL = 0.026456813921

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  5.822e+00  1.166e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.055e+00  1.623e+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.017e+00  1.639e-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:  7.566e-01  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
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/216477/cmap_HighResolution_453686401_453945601_4FGL_J2211.2-1325_daily_bin827.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-09-28 06:57:41.964762', job_id='216477', GAL2='1.02', fit_tolerance='1e-08', EG2='0.76', EG='0.77', time_epoch_completed='1632837461.96', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.65e-02', ts2='0.46', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='827' AND source_name='4FGL J2211.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:57:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 216477: <4FGL_J2211.2-1325_daily_bin827> in cluster <slac> Done

Job <4FGL_J2211.2-1325_daily_bin827> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:45:32 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:45:34 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:34 2021
Terminated at Tue Sep 28 06:57:44 2021
Results reported at Tue Sep 28 06:57:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2211.2-1325_daily_bin827 332.817 -13.4189 453686401 453945601 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 :                                   604.35 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             312.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            732 sec.

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

