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


Performing analysis on: 4FGL_J2211.2-1325_daily_bin1364
RA = 332.817, Dec = -13.4189
tmin = 592876801, tmax = 593136001
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='218352', job_status='RUN', time_executed='2021-09-28 06:51:25.450442', time_epoch_executed='1632837085.45' WHERE source_name='4FGL J2211.2-1325' and cadence='daily' and bin_id='1364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/218352

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/218352/ft1_4FGL_J2211.2-1325_daily_bin1364.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/218352/ft2_4FGL_J2211.2-1325_daily_bin1364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/218352/ft1_4FGL_J2211.2-1325_daily_bin1364.fits outfile=/scratch/kocevski/218352/ft1_filteredMKT_4FGL_J2211.2-1325_daily_bin1364.fits ra=332.817 dec=-13.4189 rad=12.0 tmin=592876801.0 tmax=593136001.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.88
user 3.63
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/218352/ft1_filtered_4FGL_J2211.2-1325_daily_bin1364.fits" evtable="EVENTS" scfile=/scratch/kocevski/218352/ft2_4FGL_J2211.2-1325_daily_bin1364.fits sctable="SC_DATA" outfile=/scratch/kocevski/218352/ltcube_592876801_593136001_4FGL_J2211.2-1325_daily_bin1364.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/218352/ft2_4FGL_J2211.2-1325_daily_bin1364.fits
.....................!
real 11.64
user 11.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/218352/ft1_filtered_4FGL_J2211.2-1325_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/218352/ft2_4FGL_J2211.2-1325_daily_bin1364.fits sctable="SC_DATA" expcube=/scratch/kocevski/218352/ltcube_592876801_593136001_4FGL_J2211.2-1325_daily_bin1364.fits outfile=/scratch/kocevski/218352/expmap_592876801_593136001_4FGL_J2211.2-1325_daily_bin1364.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/218352/ltcube_592876801_593136001_4FGL_J2211.2-1325_daily_bin1364.fits
.....................!
real 190.71
user 184.83
sys 5.54

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/218352/ft1_filtered_4FGL_J2211.2-1325_daily_bin1364.fits scfile=/scratch/kocevski/218352/ft2_4FGL_J2211.2-1325_daily_bin1364.fits outfile=/scratch/kocevski/218352/cmap_592876801_593136001_4FGL_J2211.2-1325_daily_bin1364.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/218352/ft1_filtered_4FGL_J2211.2-1325_daily_bin1364.fits scfile=/scratch/kocevski/218352/ft2_4FGL_J2211.2-1325_daily_bin1364.fits outfile=/scratch/kocevski/218352/cmap_HighResolution_592876801_593136001_4FGL_J2211.2-1325_daily_bin1364.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/218352/ft1_filtered_4FGL_J2211.2-1325_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/218352/ft2_4FGL_J2211.2-1325_daily_bin1364.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/218352/Model_4FGL_J2211.2-1325_daily_bin1364.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/218352/ft1_filtered_4FGL_J2211.2-1325_daily_bin1364.fits.....................!
real 54.28
user 52.97
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    4.6269       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .53628E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.179       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3120       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6427       1.0000         .10000E-03   10000.    
    10 'Prefactor '    97.498       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.263       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1225       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6667       1.0000         .10000E-03   10000.    
    16 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    111.04       1.0000         .10000E-03   10000.    
    18 'norm      '    .20247E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.647       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7575       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .62824       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0337       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=   6002.887     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2806 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3522        .16233E-07** at limit **
   2  Prefactor     4.6247        8.6150        .12423E-05    .61516E-04
   3  Prefactor     .10000E-03    9.8687       -.13295E-06** at limit **
   4  norm          .10000E-03    2.0094        .15372E-09** at limit **
   5  Prefactor     .91874E-02    2.7644       -.61319E-06    .43592E-03
   6  Prefactor     10.185        11.767        .29013E-06    .73071E-05
   7  Prefactor     2.3095        6.7384       -.16888E-06    .48740E-05
   8  Prefactor     .10000E-03    16.865        .10871E-06** at limit **
   9  Prefactor     1.6412        10.063        .78022E-05    .17397E-05
  10  Prefactor     97.486        72.674        .13525E-05   -.11609E-04
  11  Prefactor     .10000E-03    2.9287       -.26001E-06** at limit **
  12  Prefactor     47.250        44.268        .14068E-05   -.83827E-05
  13  norm          1.1218        2.5908       -.21892E-07   -.16453E-03
  14  Prefactor     .10000E-03    24.824       -.12372E-05** at limit **
  15  Prefactor     9.6554        15.022        .10928E-06   -.66221E-05
  16  norm          .10000E-03    .39643        .18156E-06** at limit **
  17  Prefactor     111.08        29.956       -.22555E-05    .63381E-03
  18  norm          .10071E-03    .66247       -.69812E-07** at limit **
  19  Prefactor     32.600        52.150        .65350E-05    .17650E-03
  20  Prefactor     .10000E-03    9.7883        .36877E-08** at limit **
  21  Prefactor     3.7513        14.754       -.83333E-06    .18360E-04
  22  Normalizat    .62866        .20076       -.21371E-06   -.12444E-03
  23  Prefactor     1.0336        .13425       -.12821E-05   -.30632E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.62471
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00918737
  Prefactor  = 10.1846
  Prefactor  = 2.30954
  Prefactor  = 0.0001
  Prefactor  = 1.6412
  Prefactor  = 97.4862
  Prefactor  = 0.000100003
  Prefactor  = 47.2499
  norm       = 1.12184
  Prefactor  = 0.0001
  Prefactor  = 9.6554
  norm       = 0.0001
  Prefactor  = 111.079
  norm       = 0.000100709
  Prefactor  = 32.6003
  Prefactor  = 0.0001
  Prefactor  = 3.75126
  Normalizat = 0.628664
  Prefactor  = 1.03358
 **********
 **   18 **HESSE 
 **********

 FCN=   6002.887     FROM HESSE     STATUS=OK           380 CALLS     3186 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3663        .11604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6247        8.5905        .93556E-03   -1.5278    
   3  Prefactor     .10000E-03    9.9314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.0114        .10726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .91874E-02    5.1745        .42299E-01   -1.5689    
   6  Prefactor     10.185        11.759        .12559E-03   -1.5070    
   7  Prefactor     2.3095        6.7148        .26982E-03   -1.5404    
   8  Prefactor     .10000E-03    17.335        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6412        10.202        .16481E-02   -1.5452    
  10  Prefactor     97.486        72.441        .40709E-04   -1.3730    
  11  Prefactor     .10000E-03    5.9312        .25268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     47.250        44.227        .29162E-03   -1.4332    
  13  norm          1.1218        2.5450        .17932E-03   -1.5496    
  14  Prefactor     .10000E-03    24.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.6554        15.109        .12889E-03   -1.5086    
  16  norm          .10000E-03    .70443        .94469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     111.08        30.087        .19086E-03   -1.3596    
  18  norm          .10071E-03    30.692        .99397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.600        52.146        .70129E-04   -1.4565    
  20  Prefactor     .10000E-03    10.046        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.7513        14.729        .20828E-03   -1.5321    
  22  Normalizat    .62866        .23336        .33001E-03   -1.0678    
  23  Prefactor     1.0336        .15690        .18293E-03   -.91618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39164e-08
Minuit parameter uncertainties:
  1  4.51464e-06
  2  8.59278
  3  2.88144e-05
  4  9.3163e-07
  5  0.433732
  6  11.7615
  7  6.71696
  8  4.43338e-05
  9  8.18547
  10  72.5066
  11  0.000245919
  12  44.2573
  13  2.54523
  14  5.54696e-06
  15  15.1146
  16  7.81227e-06
  17  30.0909
  18  0.00933146
  19  52.2192
  20  4.71301e-05
  21  14.7433
  22  0.233728
  23  0.156971
Done.

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

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  4.433e-05  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.034e+00  1.570e-01  0.000e+00  1.000e+01 ( 1.000e+00)
488        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
489        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
486   Normalization:  6.287e-01  2.337e-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: 9.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/218352/likelihoodResults_592876801_593136001_4FGL_J2211.2-1325_daily_bin1364.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): 102
logL (Free Index) = 6002.88719472
delta logL = -0.00027525711721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6002.88692007
delta logL = -6.04843990004e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12899E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7653       1.0000          .0000       10.000    
     3 'Normalizat'    .62871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0336       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=   6002.850     FROM MIGRAD    STATUS=FAILED       169 CALLS      327 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13402        9.5482        .36285E-02    .32510E-02
   2  Index         5.2513        3.4393        .50000        .18205E-04
   3  Normalizat    .61328        .21955E-01    .33001E-03   -.21290E-04
   4  Prefactor     1.0402        .15415E-01    .18293E-03   -.11124E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6002.850     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      403 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13402        9.5482        .11494E-03    .32510E-02
   2  Index         5.2513        3.4393        .47865E-02    .18205E-04
   3  Normalizat    .61328        .21955E-01    .10415E-03   -.21290E-04
   4  Prefactor     1.0402        .15415E-01    .28353E-04   -.11124E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6002.850     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      474 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13402        6.0385        .40820E-05    .61271E-05
   2  Index         5.2513        7.5637        .25087E-02   -.14048E-06
   3  Normalizat    .61328        .22503        .26401E-05   -.21531E-04
   4  Prefactor     1.0402        .15513        .14634E-05   -.10876E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.134024
  Index      = 5.25135
  Normalizat = 0.613284
  Prefactor  = 1.04021
 **********
 **   18 **HESSE 
 **********

 FCN=   6002.850     FROM HESSE     STATUS=OK            23 CALLS      497 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13402        3.8424        .81640E-06   -1.5635    
   2  Index         5.2513        7.5974        .10035E-03    .50290E-01
   3  Normalizat    .61328        .22848        .52801E-06   -1.0742    
   4  Prefactor     1.0402        .15761        .29269E-06   -.91401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99958e-12
Minuit parameter uncertainties:
  1  1.43479
  2  7.34399
  3  0.228829
  4  0.157683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/218352': 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) = 6002.85039279
delta logL = 0.0365266720601

Extracting fit parameters...

4FGL J2211.2-1325
   Spectrum: PowerLaw
244    Prefactor:  1.340e-01  1.435e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  5.251e+00  7.344e+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.040e+00  1.577e-01  0.000e+00  1.000e+01 ( 1.000e+00)
488        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
489        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
486   Normalization:  6.133e-01  2.288e-01  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/218352/cmap_HighResolution_592876801_593136001_4FGL_J2211.2-1325_daily_bin1364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.34e-03', job_status='DONE', photon_flux_upper_limit='9.31e-08', time_completed='2021-09-28 07:02:03.873144', job_id='218352', GAL2='1.04', fit_tolerance='1e-08', EG2='0.61', EG='0.63', time_epoch_completed='1632837723.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.65e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1364' AND source_name='4FGL J2211.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:02:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 218352: <4FGL_J2211.2-1325_daily_bin1364> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2211.2-1325_daily_bin1364 332.817 -13.4189 592876801 593136001 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 :                                   628.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            661 sec.

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

