/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 70 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_J1211.6-2735_daily_bin1029
RA = 182.901, Dec = -27.5877
tmin = 506044801, tmax = 506304001
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='400188', job_status='RUN', time_executed='2021-09-05 03:32:02.029488', time_epoch_executed='1630837922.03' WHERE source_name='4FGL J1211.6-2735' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/400188

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/400188/ft1_4FGL_J1211.6-2735_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/400188/ft2_4FGL_J1211.6-2735_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/400188/ft1_4FGL_J1211.6-2735_daily_bin1029.fits outfile=/scratch/kocevski/400188/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin1029.fits ra=182.901 dec=-27.5877 rad=12.0 tmin=506044801.0 tmax=506304001.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 4.31
user 4.05
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/400188/ft2_4FGL_J1211.6-2735_daily_bin1029.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/400188/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/400188/ft1_filtered_4FGL_J1211.6-2735_daily_bin1029.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/400188/ft1_filtered_4FGL_J1211.6-2735_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/400188/ft2_4FGL_J1211.6-2735_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/400188/ltcube_506044801_506304001_4FGL_J1211.6-2735_daily_bin1029.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/400188/ft2_4FGL_J1211.6-2735_daily_bin1029.fits
.....................!
real 12.53
user 12.12
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/400188/ft1_filtered_4FGL_J1211.6-2735_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/400188/ft2_4FGL_J1211.6-2735_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/400188/ltcube_506044801_506304001_4FGL_J1211.6-2735_daily_bin1029.fits outfile=/scratch/kocevski/400188/expmap_506044801_506304001_4FGL_J1211.6-2735_daily_bin1029.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/400188/ltcube_506044801_506304001_4FGL_J1211.6-2735_daily_bin1029.fits
.....................!
real 192.40
user 185.62
sys 6.37

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/400188/ft1_filtered_4FGL_J1211.6-2735_daily_bin1029.fits scfile=/scratch/kocevski/400188/ft2_4FGL_J1211.6-2735_daily_bin1029.fits outfile=/scratch/kocevski/400188/cmap_506044801_506304001_4FGL_J1211.6-2735_daily_bin1029.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/400188/ft1_filtered_4FGL_J1211.6-2735_daily_bin1029.fits scfile=/scratch/kocevski/400188/ft2_4FGL_J1211.6-2735_daily_bin1029.fits outfile=/scratch/kocevski/400188/cmap_HighResolution_506044801_506304001_4FGL_J1211.6-2735_daily_bin1029.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 1.72
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/400188/ft1_filtered_4FGL_J1211.6-2735_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/400188/ft2_4FGL_J1211.6-2735_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/400188/Model_4FGL_J1211.6-2735_daily_bin1029.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/400188/ft1_filtered_4FGL_J1211.6-2735_daily_bin1029.fits.....................!
real 118.21
user 116.60
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .69996E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.1023       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2692       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 '    1.7762       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15872E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.594       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.134       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.095       1.0000         .10000E-03   10000.    
    18 'norm      '    .96108       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19676E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.5686       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3051       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99788       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=   6910.564     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2708 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.380       -.22466E-05** at limit **
   2  Prefactor     .10000E-03    7.2420        .32804E-07** at limit **
   3  Prefactor     .10009E-03    7.8421        .99650E-06** at limit **
   4  norm          3.1013        7.2743        .64616E-06   -.69846E-04
   5  Prefactor     7.2728        8.0477        .37626E-05   -.22597E-03
   6  Prefactor     .10000E-03    16.367        .13548E-05** at limit **
   7  norm          .10000E-03    59.670        .31567E-05** at limit **
   8  Prefactor     1.7756        40.728        .73282E-06   -.49986E-05
   9  norm          .10000E-03    3.8496       -.29078E-07** at limit **
  10  Prefactor     .10000E-03    11.216       -.19330E-05** at limit **
  11  Prefactor     .10000E-03    43.880        .20143E-05** at limit **
  12  Prefactor     .10000E-03    14.322       -.13436E-05** at limit **
  13  Prefactor     31.565        41.037       -.30192E-05   -.18965E-03
  14  Prefactor     .10000E-03    33.688       -.22046E-05** at limit **
  15  Prefactor     .10001E-03    78.738       -.70901E-05** at limit **
  16  Prefactor     34.142        35.759        .13989E-05    .42811E-04
  17  Prefactor     14.099        15.904        .19413E-06   -.39980E-04
  18  norm          .96145        1.2887        .39457E-06    .20572E-03
  19  Prefactor     .10000E-03    50.078        .35577E-05** at limit **
  20  norm          .10000E-03    7.4799        .20075E-07** at limit **
  21  Prefactor     .10002E-03    4.2385        .60327E-06** at limit **
  22  norm          6.5675        6.5736        .27917E-06    .16523E-04
  23  Normalizat    1.3046        .27196       -.13215E-05   -.86126E-04
  24  Prefactor     .99813        .11709       -.46669E-06   -.20061E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100089
  norm       = 3.10133
  Prefactor  = 7.2728
  Prefactor  = 0.000100001
  norm       = 0.000100003
  Prefactor  = 1.77559
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 31.5651
  Prefactor  = 0.000100001
  Prefactor  = 0.000100014
  Prefactor  = 34.1416
  Prefactor  = 14.0988
  norm       = 0.961449
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.000100017
  norm       = 6.56754
  Normalizat = 1.30459
  Prefactor  = 0.998129
 **********
 **   18 **HESSE 
 **********

 FCN=   6910.564     FROM HESSE     STATUS=OK           395 CALLS     3103 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.2801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10009E-03    64.025        .44509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.1013        7.2380        .23023E-03   -1.5356    
   5  Prefactor     7.2728        8.2812        .74384E-03   -1.5169    
   6  Prefactor     .10000E-03    16.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    60.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7756        40.014        .31411E-03   -1.5441    
   9  norm          .10000E-03    3.8700        .15780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.522        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    44.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.565        41.552        .71285E-04   -1.4584    
  14  Prefactor     .10000E-03    34.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    80.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.142        35.837        .68589E-04   -1.4539    
  17  Prefactor     14.099        15.943        .10669E-03   -1.4957    
  18  norm          .96145        1.1840        .10218E-02   -1.5512    
  19  Prefactor     .10000E-03    50.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.5295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    22.457        .32554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.5675        6.5776        .15658E-03   -1.5195    
  23  Normalizat    1.3046        .32945        .35145E-03   -.83429    
  24  Prefactor     .99813        .14233        .18256E-03   -.92792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85903e-09
Minuit parameter uncertainties:
  1  0.000485287
  2  4.3477e-07
  3  0.00477673
  4  7.24001
  5  8.28253
  6  0.000203109
  7  0.000818812
  8  16.8702
  9  3.94069e-06
  10  7.72224e-05
  11  0.000539832
  12  0.000172022
  13  41.5897
  14  0.00034598
  15  0.00213379
  16  35.86
  17  15.9477
  18  1.184
  19  0.00093255
  20  1.33531e-05
  21  0.00123609
  22  6.57834
  23  0.329978
  24  0.142385
Done.

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

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  3.157e+01  4.159e+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.981e-01  1.424e-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.305e+00  3.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/400188/likelihoodResults_506044801_506304001_4FGL_J1211.6-2735_daily_bin1029.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) = 6908.2496165
delta logL = 2.31437706024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6908.11853674
delta logL = 2.44545681885

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13490       1.0000         .10000E-03   10000.    
     2 'Index     '    6.3016       1.0000          .0000       10.000    
     3 'Normalizat'    1.0933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0682       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.

 FCN=   6908.119     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      297 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13365        .86616        .31801E-02    .62694E-02
   2  Index         6.3064        2.2316        .89916E-01    .28693E-03
   3  Normalizat    1.0932        .81816E-01    .85409E-01   -.70710E-04
   4  Prefactor     1.0682        .37758E-01    .38943E-01   -.94302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.133653
  Index      = 6.30639
  Normalizat = 1.09316
  Prefactor  = 1.06825
 **********
 **   18 **HESSE 
 **********

 FCN=   6908.119     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      328 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13365        1.5557        .14276E-04   -1.5635    
   2  Index         6.3064        3.1418        .36845E-02    .26435    
   3  Normalizat    1.0932        .27656        .37818E-03   -.89972    
   4  Prefactor     1.0682        .12572        .17696E-03   -.90488    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.78457e-10
Minuit parameter uncertainties:
  1  0.911659
  2  3.42117
  3  0.276931
  4  0.125751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/400188': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6908.11853369
delta logL = 2.44545987175

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  1.337e-01  9.117e-01  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  6.306e+00  3.421e+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:  1.068e+00  1.258e-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.093e+00  2.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.25
Ra Dec: 182.901 -27.588
Photon Index (Free Index): 6.31 +/- 3.42
Photon Flux (Free Index): 2.19e-07 +/- 1.06e-07
Energy Flux (Free Index): 2.69e-05 +/- 1.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/400188/cmap_HighResolution_506044801_506304001_4FGL_J1211.6-2735_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-02', comment='SUCCESS', energy_flux2='2.69e-05', dlogl='2.45e+00', photon_flux2='2.19e-07', job_status='DONE', time_completed='2021-09-05 03:46:20.182822', photon_index_error2='3.42', photon_index2='6.31', ts='0.76', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.97e-07', energy_flux_error2='1.39e-05', EG='1.30', time_epoch_completed='1630838780.18', return_code='0', job_id='400188', GAL2='1.07', EG2='1.09', return_code2='102', photon_flux_error2='1.06e-07', ts2='6.25', photon_index='2.57' WHERE bin_id='1029' AND source_name='4FGL J1211.6-2735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:46:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 400188: <4FGL_J1211.6-2735_daily_bin1029> in cluster <slac> Done

Job <4FGL_J1211.6-2735_daily_bin1029> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 03:30:30 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:30:32 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:30:32 2021
Terminated at Sun Sep  5 03:46:20 2021
Results reported at Sun Sep  5 03:46:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1211.6-2735_daily_bin1029 182.901 -27.5877 506044801 506304001 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 :                                   810.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

