/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 9 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1211.6-2735_daily_bin162
RA = 182.901, Dec = -27.5877
tmin = 281318401, tmax = 281577601
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='393362', job_status='RUN', time_executed='2021-09-05 03:11:04.617341', time_epoch_executed='1630836664.62' WHERE source_name='4FGL J1211.6-2735' and cadence='daily' and bin_id='162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393362

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393362/ft1_4FGL_J1211.6-2735_daily_bin162.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393362/ft2_4FGL_J1211.6-2735_daily_bin162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393362/ft1_4FGL_J1211.6-2735_daily_bin162.fits outfile=/scratch/kocevski/393362/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin162.fits ra=182.901 dec=-27.5877 rad=12.0 tmin=281318401.0 tmax=281577601.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.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/393362/ft2_4FGL_J1211.6-2735_daily_bin162.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/393362/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin162.fits evtable="EVENTS" outfile="/scratch/kocevski/393362/ft1_filtered_4FGL_J1211.6-2735_daily_bin162.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.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393362/ft1_filtered_4FGL_J1211.6-2735_daily_bin162.fits" evtable="EVENTS" scfile=/scratch/kocevski/393362/ft2_4FGL_J1211.6-2735_daily_bin162.fits sctable="SC_DATA" outfile=/scratch/kocevski/393362/ltcube_281318401_281577601_4FGL_J1211.6-2735_daily_bin162.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/393362/ft2_4FGL_J1211.6-2735_daily_bin162.fits
.....................!
real 11.76
user 11.36
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393362/ft1_filtered_4FGL_J1211.6-2735_daily_bin162.fits evtable="EVENTS" scfile=/scratch/kocevski/393362/ft2_4FGL_J1211.6-2735_daily_bin162.fits sctable="SC_DATA" expcube=/scratch/kocevski/393362/ltcube_281318401_281577601_4FGL_J1211.6-2735_daily_bin162.fits outfile=/scratch/kocevski/393362/expmap_281318401_281577601_4FGL_J1211.6-2735_daily_bin162.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/393362/ltcube_281318401_281577601_4FGL_J1211.6-2735_daily_bin162.fits
.....................!
real 189.96
user 184.68
sys 4.95

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/393362/ft1_filtered_4FGL_J1211.6-2735_daily_bin162.fits scfile=/scratch/kocevski/393362/ft2_4FGL_J1211.6-2735_daily_bin162.fits outfile=/scratch/kocevski/393362/cmap_281318401_281577601_4FGL_J1211.6-2735_daily_bin162.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.56
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393362/ft1_filtered_4FGL_J1211.6-2735_daily_bin162.fits scfile=/scratch/kocevski/393362/ft2_4FGL_J1211.6-2735_daily_bin162.fits outfile=/scratch/kocevski/393362/cmap_HighResolution_281318401_281577601_4FGL_J1211.6-2735_daily_bin162.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/393362/ft1_filtered_4FGL_J1211.6-2735_daily_bin162.fits evtable="EVENTS" scfile=/scratch/kocevski/393362/ft2_4FGL_J1211.6-2735_daily_bin162.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393362/Model_4FGL_J1211.6-2735_daily_bin162.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/393362/ft1_filtered_4FGL_J1211.6-2735_daily_bin162.fits.....................!
real 100.72
user 99.35
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/393362/ft1_filtered_4FGL_J1211.6-2735_daily_bin162.fits', '/scratch/kocevski/393362/ft2_4FGL_J1211.6-2735_daily_bin162.fits', expMap='/scratch/kocevski/393362/expmap_281318401_281577601_4FGL_J1211.6-2735_daily_bin162.fits', expCube='/scratch/kocevski/393362/ltcube_281318401_281577601_4FGL_J1211.6-2735_daily_bin162.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/393362/Model_4FGL_J1211.6-2735_daily_bin162.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/393362/ft1_filtered_4FGL_J1211.6-2735_daily_bin162.fits
Spacecraft file(s): /scratch/kocevski/393362/ft2_4FGL_J1211.6-2735_daily_bin162.fits
Exposure map: /scratch/kocevski/393362/expmap_281318401_281577601_4FGL_J1211.6-2735_daily_bin162.fits
Exposure cube: /scratch/kocevski/393362/ltcube_281318401_281577601_4FGL_J1211.6-2735_daily_bin162.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/393362/Model_4FGL_J1211.6-2735_daily_bin162.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) = 6020.8573557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.478       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11145E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.1204       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    71.141       1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.601       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11622E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7389       1.0000         .10000E-03   10000.    
    18 'norm      '    .86807       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.4893       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.8981       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.9191       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66747       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=   6020.836     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2745 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.480        33.257       -.20415E-06   -.27220E-04
   2  Prefactor     .10000E-03    9.4789        .15539E-06** at limit **
   3  Prefactor     .10000E-03    11.466        .14736E-06** at limit **
   4  norm          .10000E-03    3.7671       -.31562E-07** at limit **
   5  Prefactor     .10000E-03    2.4057       -.54202E-07** at limit **
   6  Prefactor     .10000E-03    47.242        .69158E-07** at limit **
   7  norm          .10000E-03    10.457       -.15901E-06** at limit **
   8  Prefactor     .10002E-03    102.19       -.31831E-04** at limit **
   9  norm          8.1220        5.6995        .73046E-07    .16556E-03
  10  Prefactor     .10000E-03    5.0850       -.16513E-06** at limit **
  11  Prefactor     .10000E-03    27.474       -.66510E-06** at limit **
  12  Prefactor     .10000E-03    10.038       -.24068E-06** at limit **
  13  Prefactor     71.140        49.209        .61464E-06    .24073E-03
  14  Prefactor     43.604        30.095        .12414E-05    .68998E-03
  15  Prefactor     .10000E-03    66.864       -.38095E-05** at limit **
  16  Prefactor     .10000E-03    54.019       -.18663E-05** at limit **
  17  Prefactor     5.7389        7.9723        .53803E-07    .72478E-04
  18  norm          .86799        1.3126        .35972E-06    .23027E-02
  19  Prefactor     .10000E-03    41.783        .27825E-05** at limit **
  20  norm          5.4895        6.5582       -.12210E-06   -.10180E-03
  21  Prefactor     .10000E-03    2.5880       -.29029E-07** at limit **
  22  norm          9.8979        7.3083        .59416E-07    .15369E-03
  23  Normalizat    1.9188        .28018       -.63547E-07    .33461E-03
  24  Prefactor     .66757        .12107        .15997E-06    .47595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100024
  norm       = 8.12198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.1395
  Prefactor  = 43.6038
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 5.73888
  norm       = 0.867987
  Prefactor  = 0.000100002
  norm       = 5.48955
  Prefactor  = 0.0001
  norm       = 9.8979
  Normalizat = 1.91883
  Prefactor  = 0.667573
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.836     FROM HESSE     STATUS=OK           385 CALLS     3130 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.480        33.260        .73793E-04   -1.4622    
   2  Prefactor     .10000E-03    9.5127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.7831        .14708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4145        .11752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    102.07        .55319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.1220        5.7207        .14069E-03   -1.5138    
  10  Prefactor     .10000E-03    5.1347        .17055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     71.140        49.348        .47595E-04   -1.4019    
  14  Prefactor     43.604        30.461        .60714E-04   -1.4386    
  15  Prefactor     .10000E-03    66.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    54.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7389        7.9683        .16766E-03   -1.5229    
  18  norm          .86799        1.2920        .10444E-03   -1.5522    
  19  Prefactor     .10000E-03    41.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.4895        6.5506        .17149E-03   -1.5239    
  21  Prefactor     .10000E-03    2.5908        .12187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.8979        7.3090        .12737E-03   -1.5079    
  23  Normalizat    1.9188        .33268        .30838E-03   -.66601    
  24  Prefactor     .66757        .14342        .21287E-03   -1.0481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38478e-09
Minuit parameter uncertainties:
  1  33.2806
  2  1.66442e-05
  3  1.65742e-06
  4  4.31665e-06
  5  4.23604e-06
  6  9.46144e-05
  7  1.94306e-05
  8  0.00313511
  9  5.7211
  10  2.31166e-05
  11  6.78828e-05
  12  1.69143e-05
  13  49.3763
  14  30.4714
  15  0.00067033
  16  0.000354288
  17  7.96976
  18  1.29207
  19  0.000551677
  20  6.55146
  21  4.68977e-06
  22  7.30966
  23  0.333079
  24  0.143501
Done.

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

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  7.114e+01  4.938e+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:  6.676e-01  1.435e-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.919e+00  3.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.12
Ra Dec: 182.901 -27.588
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 8.27e-08
Energy Flux (Fixed Index): 3.21e-05 +/- 2.23e-05

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

Saving results to:
/scratch/kocevski/393362/likelihoodResults_281318401_281577601_4FGL_J1211.6-2735_daily_bin162.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) = 6020.83590117
delta logL = 0.00031127600414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6020.83560521
delta logL = 0.000607238268458

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.617       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5991       1.0000          .0000       10.000    
     3 'Normalizat'    1.9163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66810       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=   6020.836     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      262 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.552        71.489        .48109E-04    .23867E-04
   2  Index         2.5973        .75418        .69878E-02   -.17942E-04
   3  Normalizat    1.9163        .33777        .30854E-03    .16227E-03
   4  Prefactor     .66844        .14541        .21275E-03   -.15833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.5515
  Index      = 2.59731
  Normalizat = 1.91627
  Prefactor  = 0.668442
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.836     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.552        66.502        .96219E-05   -1.4038    
   2  Index         2.5973        .70067        .27951E-03   -.50127    
   3  Normalizat    1.9163        .33697        .61707E-04   -.66666    
   4  Prefactor     .66844        .14510        .85100E-05   -1.0478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04e-10
Minuit parameter uncertainties:
  1  66.5732
  2  0.703686
  3  0.33738
  4  0.145178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393362': 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) = 6020.83558756
delta logL = 0.000624885180514

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  6.955e+01  6.657e+01  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.597e+00  7.037e-01  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:  6.684e-01  1.452e-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.916e+00  3.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.11
Ra Dec: 182.901 -27.588
Photon Index (Free Index): 2.60 +/- 0.70
Photon Flux (Free Index): 1.21e-07 +/- 9.81e-08
Energy Flux (Free Index): 3.18e-05 +/- 2.33e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/393362/cmap_HighResolution_281318401_281577601_4FGL_J1211.6-2735_daily_bin162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-02', comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='3.18e-05', photon_flux_error='8.27e-08', dlogl='6.25e-04', energy_flux='3.21e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-05 03:23:16.800095', photon_index_error2='0.70', photon_index2='2.60', ts='3.12', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='2.84e-07', energy_flux_error2='2.33e-05', EG='1.92', time_epoch_completed='1630837396.8', return_code='0', job_id='393362', GAL2='0.67', EG2='1.92', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='9.81e-08', ts2='3.11', photon_index='2.57' WHERE bin_id='162' AND source_name='4FGL J1211.6-2735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:23:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 393362: <4FGL_J1211.6-2735_daily_bin162> in cluster <slac> Done

Job <4FGL_J1211.6-2735_daily_bin162> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 03:10:45 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:10:48 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:10:48 2021
Terminated at Sun Sep  5 03:23:17 2021
Results reported at Sun Sep  5 03:23:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1211.6-2735_daily_bin162 182.901 -27.5877 281318401 281577601 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 :                                   728.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             388.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            752 sec.

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

