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


Performing analysis on: 4FGL_J1211.6-2735_daily_bin624
RA = 182.901, Dec = -27.5877
tmin = 401068801, tmax = 401328001
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='397267', job_status='RUN', time_executed='2021-09-05 03:23:04.377102', time_epoch_executed='1630837384.38' WHERE source_name='4FGL J1211.6-2735' and cadence='daily' and bin_id='624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397267

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397267/ft1_4FGL_J1211.6-2735_daily_bin624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397267/ft2_4FGL_J1211.6-2735_daily_bin624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397267/ft1_4FGL_J1211.6-2735_daily_bin624.fits outfile=/scratch/kocevski/397267/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin624.fits ra=182.901 dec=-27.5877 rad=12.0 tmin=401068801.0 tmax=401328001.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.36
user 3.15
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/397267/ft2_4FGL_J1211.6-2735_daily_bin624.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/397267/ft2_4FGL_J1211.6-2735_daily_bin624.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/397267/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin624.fits evtable="EVENTS" outfile="/scratch/kocevski/397267/ft1_filtered_4FGL_J1211.6-2735_daily_bin624.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397267/ft1_filtered_4FGL_J1211.6-2735_daily_bin624.fits" evtable="EVENTS" scfile=/scratch/kocevski/397267/ft2_4FGL_J1211.6-2735_daily_bin624.fits sctable="SC_DATA" outfile=/scratch/kocevski/397267/ltcube_401068801_401328001_4FGL_J1211.6-2735_daily_bin624.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/397267/ft2_4FGL_J1211.6-2735_daily_bin624.fits
.....................!
real 11.93
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397267/ft1_filtered_4FGL_J1211.6-2735_daily_bin624.fits evtable="EVENTS" scfile=/scratch/kocevski/397267/ft2_4FGL_J1211.6-2735_daily_bin624.fits sctable="SC_DATA" expcube=/scratch/kocevski/397267/ltcube_401068801_401328001_4FGL_J1211.6-2735_daily_bin624.fits outfile=/scratch/kocevski/397267/expmap_401068801_401328001_4FGL_J1211.6-2735_daily_bin624.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/397267/ltcube_401068801_401328001_4FGL_J1211.6-2735_daily_bin624.fits
.....................!
real 189.28
user 184.78
sys 4.19

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 183 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1211.6-2735 @ 182.901 -27.5877

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/397267/ft1_filtered_4FGL_J1211.6-2735_daily_bin624.fits scfile=/scratch/kocevski/397267/ft2_4FGL_J1211.6-2735_daily_bin624.fits outfile=/scratch/kocevski/397267/cmap_401068801_401328001_4FGL_J1211.6-2735_daily_bin624.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=182.901 yref=-27.5877 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397267/ft1_filtered_4FGL_J1211.6-2735_daily_bin624.fits scfile=/scratch/kocevski/397267/ft2_4FGL_J1211.6-2735_daily_bin624.fits outfile=/scratch/kocevski/397267/cmap_HighResolution_401068801_401328001_4FGL_J1211.6-2735_daily_bin624.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=182.901 yref=-27.5877 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397267/ft1_filtered_4FGL_J1211.6-2735_daily_bin624.fits evtable="EVENTS" scfile=/scratch/kocevski/397267/ft2_4FGL_J1211.6-2735_daily_bin624.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397267/Model_4FGL_J1211.6-2735_daily_bin624.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/397267/ft1_filtered_4FGL_J1211.6-2735_daily_bin624.fits.....................!
real 115.55
user 114.21
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/397267/ft1_filtered_4FGL_J1211.6-2735_daily_bin624.fits', '/scratch/kocevski/397267/ft2_4FGL_J1211.6-2735_daily_bin624.fits', expMap='/scratch/kocevski/397267/expmap_401068801_401328001_4FGL_J1211.6-2735_daily_bin624.fits', expCube='/scratch/kocevski/397267/ltcube_401068801_401328001_4FGL_J1211.6-2735_daily_bin624.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/397267/Model_4FGL_J1211.6-2735_daily_bin624.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1211.6-2735'

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  5.517e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.573e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
291        Scale:  8.728e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/397267/ft1_filtered_4FGL_J1211.6-2735_daily_bin624.fits
Spacecraft file(s): /scratch/kocevski/397267/ft2_4FGL_J1211.6-2735_daily_bin624.fits
Exposure map: /scratch/kocevski/397267/expmap_401068801_401328001_4FGL_J1211.6-2735_daily_bin624.fits
Exposure cube: /scratch/kocevski/397267/ltcube_401068801_401328001_4FGL_J1211.6-2735_daily_bin624.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/397267/Model_4FGL_J1211.6-2735_daily_bin624.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) = 6716.00291261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.657       1.0000         .10000E-03   10000.    
     4 'norm      '    5.8344       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.8276       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6546       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.261       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    60.587       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8770       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.7724       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.148       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5247       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6715.998     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2723 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.889        .10265E-05** at limit **
   2  Prefactor     .10000E-03    6.9182       -.26133E-05** at limit **
   3  Prefactor     17.657        20.497       -.66029E-06   -.25578E-04
   4  norm          5.8343        7.6457       -.26866E-07   -.95287E-04
   5  Prefactor     .10000E-03    2.1240        .84795E-07** at limit **
   6  Prefactor     .10000E-03    48.083        .16285E-04** at limit **
   7  norm          8.8272        20.115       -.48147E-06   -.22277E-04
   8  Prefactor     .10000E-03    7.8138        .15011E-05** at limit **
   9  norm          1.6554        3.4665        .24394E-06   -.71105E-03
  10  Prefactor     .10000E-03    7.4504        .72699E-05** at limit **
  11  Prefactor     19.241        40.116       -.27378E-04   -.31960E-04
  12  Prefactor     .10000E-03    49.194        .13799E-04** at limit **
  13  Prefactor     60.575        42.590       -.95187E-05   -.20130E-03
  14  Prefactor     .10000E-03    10.839        .67071E-06** at limit **
  15  Prefactor     2.8868        59.214        .18707E-04   -.26512E-04
  16  Prefactor     .10000E-03    34.154       -.82567E-05** at limit **
  17  Prefactor     .10000E-03    8.0241       -.69306E-05** at limit **
  18  norm          6.7725        1.8742       -.32110E-07    .11655E-03
  19  Prefactor     .10000E-03    62.729       -.22664E-04** at limit **
  20  norm          11.140        10.577        .13977E-06    .49483E-04
  21  Prefactor     .10000E-03    6.4231        .61757E-06** at limit **
  22  norm          .10000E-03    5.0398       -.49571E-06** at limit **
  23  Normalizat    1.5245        .27791        .25203E-05   -.20103E-03
  24  Prefactor     .95245        .12572        .67128E-07   -.13452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6573
  norm       = 5.83426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.82722
  Prefactor  = 0.0001
  norm       = 1.6554
  Prefactor  = 0.000100001
  Prefactor  = 19.2412
  Prefactor  = 0.000100001
  Prefactor  = 60.5755
  Prefactor  = 0.0001
  Prefactor  = 2.88676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.77252
  Prefactor  = 0.0001
  norm       = 11.1404
  Prefactor  = 0.0001
  norm       = 0.000100002
  Normalizat = 1.5245
  Prefactor  = 0.952453
 **********
 **   18 **HESSE 
 **********

 FCN=   6715.998     FROM HESSE     STATUS=OK           391 CALLS     3114 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.9275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.657        20.488        .95315E-04   -1.4867    
   4  norm          5.8343        7.6371        .16627E-03   -1.5225    
   5  Prefactor     .10000E-03    2.1295        .11662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.8272        20.128        .13491E-03   -1.5114    
   8  Prefactor     .10000E-03    7.8307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6554        3.4278        .21211E-03   -1.5451    
  10  Prefactor     .10000E-03    7.6580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.241        39.925        .91262E-04   -1.4830    
  12  Prefactor     .10000E-03    50.602        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     60.575        42.912        .51547E-04   -1.4150    
  14  Prefactor     .10000E-03    10.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8868        58.797        .23963E-03   -1.5368    
  16  Prefactor     .10000E-03    34.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.0366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.7725        1.8741        .56296E-04   -1.5187    
  19  Prefactor     .10000E-03    62.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.140        10.548        .11999E-03   -1.5040    
  21  Prefactor     .10000E-03    6.4654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    36.230        .35401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5245        .33124        .35766E-03   -.77092    
  24  Prefactor     .95245        .15010        .19893E-03   -.94332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.16177e-10
Minuit parameter uncertainties:
  1  1.13231e-05
  2  6.2381e-06
  3  20.496
  4  7.63841
  5  2.00549e-06
  6  3.98037e-05
  7  20.1438
  8  4.19287e-05
  9  3.42816
  10  0.000181748
  11  39.98
  12  0.000500879
  13  42.9336
  14  2.89306e-05
  15  26.0852
  16  0.00012143
  17  1.18003e-06
  18  1.87412
  19  1.99195e-05
  20  10.5493
  21  9.63791e-06
  22  0.000570501
  23  0.331709
  24  0.150167
Done.

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

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  6.058e+01  4.293e+01  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.573e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
291        Scale:  8.728e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.525e-01  1.502e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.525e+00  3.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.51
Ra Dec: 182.901 -27.588
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 7.19e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 1.94e-05

TS (Fixed Index): 3.51
Ra Dec: 182.901 -27.588
Photon Flux Upper Limit: 2.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.96e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/397267/likelihoodResults_401068801_401328001_4FGL_J1211.6-2735_daily_bin624.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) = 6715.29343291
delta logL = 0.704903444288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6715.27216325
delta logL = 0.726173104134

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.336       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6279       1.0000          .0000       10.000    
     3 'Normalizat'    1.3918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99236       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+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=   6715.272     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      288 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.317        142.36        .86714E-04    .17581E-03
   2  Index         3.6283        2.9596        .43348E-02    .11340E-03
   3  Normalizat    1.3919        .39616        .37083E-03    .11736E-03
   4  Prefactor     .99233        .17366        .19533E-03   -.60270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.3173
  Index      = 3.62832
  Normalizat = 1.39191
  Prefactor  = 0.992331
 **********
 **   18 **HESSE 
 **********

 FCN=   6715.272     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.317        35.707        .34686E-05   -1.4784    
   2  Index         3.6283        1.0212        .17339E-03   -.27790    
   3  Normalizat    1.3919        .34665        .14833E-04   -.80863    
   4  Prefactor     .99233        .15336        .39067E-04   -.92986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62621e-09
Minuit parameter uncertainties:
  1  35.7428
  2  1.02908
  3  0.347234
  4  0.153424
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397267': 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) = 6715.27216306
delta logL = 0.726173291435

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  2.132e+01  3.574e+01  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  3.628e+00  1.029e+00  0.000e+00  1.000e+01 (-1.000e+00)
291        Scale:  8.728e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.923e-01  1.534e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.392e+00  3.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.20
Ra Dec: 182.901 -27.588
Photon Index (Free Index): 3.63 +/- 1.03
Photon Flux (Free Index): 2.11e-07 +/- 1.24e-07
Energy Flux (Free Index): 3.40e-05 +/- 1.82e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/397267/cmap_HighResolution_401068801_401328001_4FGL_J1211.6-2735_daily_bin624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-02', comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='3.40e-05', photon_flux_error='7.19e-08', dlogl='7.26e-01', energy_flux='2.73e-05', photon_flux2='2.11e-07', job_status='DONE', time_completed='2021-09-05 03:36:05.708389', photon_index_error2='1.03', photon_index2='3.63', ts='3.51', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='2.51e-07', energy_flux_error2='1.82e-05', EG='1.52', time_epoch_completed='1630838165.71', return_code='0', job_id='397267', GAL2='0.99', EG2='1.39', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='1.24e-07', ts2='5.20', photon_index='2.57' WHERE bin_id='624' AND source_name='4FGL J1211.6-2735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:36:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 397267: <4FGL_J1211.6-2735_daily_bin624> in cluster <slac> Done

Job <4FGL_J1211.6-2735_daily_bin624> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 03:20:40 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:20:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 03:20:41 2021
Terminated at Sun Sep  5 03:36:06 2021
Results reported at Sun Sep  5 03:36:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1211.6-2735_daily_bin624 182.901 -27.5877 401068801 401328001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1211.6-2735 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   780.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

