/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 142 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 = 7405
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1211.6-2735_daily_bin431
RA = 182.901, Dec = -27.5877
tmin = 351043201, tmax = 351302401
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='395571', job_status='RUN', time_executed='2021-09-05 03:18:22.238429', time_epoch_executed='1630837102.24' WHERE source_name='4FGL J1211.6-2735' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395571

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395571/ft1_4FGL_J1211.6-2735_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395571/ft2_4FGL_J1211.6-2735_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395571/ft1_4FGL_J1211.6-2735_daily_bin431.fits outfile=/scratch/kocevski/395571/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin431.fits ra=182.901 dec=-27.5877 rad=12.0 tmin=351043201.0 tmax=351302401.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.47
user 3.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395571/ft1_filtered_4FGL_J1211.6-2735_daily_bin431.fits" evtable="EVENTS" scfile=/scratch/kocevski/395571/ft2_4FGL_J1211.6-2735_daily_bin431.fits sctable="SC_DATA" outfile=/scratch/kocevski/395571/ltcube_351043201_351302401_4FGL_J1211.6-2735_daily_bin431.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/395571/ft2_4FGL_J1211.6-2735_daily_bin431.fits
.....................!
real 12.43
user 11.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395571/ft1_filtered_4FGL_J1211.6-2735_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/395571/ft2_4FGL_J1211.6-2735_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/395571/ltcube_351043201_351302401_4FGL_J1211.6-2735_daily_bin431.fits outfile=/scratch/kocevski/395571/expmap_351043201_351302401_4FGL_J1211.6-2735_daily_bin431.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/395571/ltcube_351043201_351302401_4FGL_J1211.6-2735_daily_bin431.fits
.....................!
real 192.09
user 186.14
sys 4.44

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/395571/ft1_filtered_4FGL_J1211.6-2735_daily_bin431.fits scfile=/scratch/kocevski/395571/ft2_4FGL_J1211.6-2735_daily_bin431.fits outfile=/scratch/kocevski/395571/cmap_351043201_351302401_4FGL_J1211.6-2735_daily_bin431.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.63
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395571/ft1_filtered_4FGL_J1211.6-2735_daily_bin431.fits scfile=/scratch/kocevski/395571/ft2_4FGL_J1211.6-2735_daily_bin431.fits outfile=/scratch/kocevski/395571/cmap_HighResolution_351043201_351302401_4FGL_J1211.6-2735_daily_bin431.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.73
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395571/ft1_filtered_4FGL_J1211.6-2735_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/395571/ft2_4FGL_J1211.6-2735_daily_bin431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395571/Model_4FGL_J1211.6-2735_daily_bin431.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/395571/ft1_filtered_4FGL_J1211.6-2735_daily_bin431.fits.....................!
real 110.33
user 107.52
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10566E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.2539       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    22.525       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.338       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6470       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27494       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11545E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.522       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8281       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .43075E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.107       1.0000         .10000E-03   10000.    
    18 'norm      '    3.7009       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.7866       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.507       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98508       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99645       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=   6525.459     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2795 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.064        .21416E-06** at limit **
   2  Prefactor     .10000E-03    15.303       -.15826E-06** at limit **
   3  Prefactor     .10000E-03    8.5521       -.27139E-07** at limit **
   4  norm          4.2582        11.220        .26425E-05   -.81370E-04
   5  Prefactor     .10000E-03    5.5286       -.93279E-07** at limit **
   6  Prefactor     .10000E-03    24.812       -.78154E-07** at limit **
   7  norm          22.528        20.723        .26720E-07   -.77232E-05
   8  Prefactor     11.337        27.888        .96151E-06    .60036E-04
   9  norm          1.6524        13.095       -.39030E-06   -.16800E-03
  10  Prefactor     .25524        3.6494       -.26864E-06    .34951E-03
  11  Prefactor     .10000E-03    57.347       -.22265E-06** at limit **
  12  Prefactor     .10000E-03    6.0068       -.34060E-07** at limit **
  13  Prefactor     36.493        35.864       -.39582E-05   -.55887E-04
  14  Prefactor     7.8299        18.391        .66799E-07   -.15925E-04
  15  Prefactor     .10000E-03    36.531       -.18567E-06** at limit **
  16  Prefactor     .10095E-03    25.604        .11707E-05** at limit **
  17  Prefactor     22.104        15.427        .19550E-07   -.78001E-05
  18  norm          3.7009        1.3204       -.20479E-07   -.25705E-03
  19  Prefactor     .10000E-03    87.121        .76458E-06** at limit **
  20  norm          3.7896        7.6379        .24215E-05   -.18087E-03
  21  Prefactor     .10000E-03    3.2552        .73352E-07** at limit **
  22  norm          10.503        6.2769        .51077E-07   -.26938E-04
  23  Normalizat    .98582        .25755       -.15316E-05   -.20689E-03
  24  Prefactor     .99603        .11671       -.25610E-07   -.40578E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.25819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.5276
  Prefactor  = 11.3367
  norm       = 1.65235
  Prefactor  = 0.255238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.4931
  Prefactor  = 7.82987
  Prefactor  = 0.0001
  Prefactor  = 0.000100947
  Prefactor  = 22.1036
  norm       = 3.70094
  Prefactor  = 0.0001
  norm       = 3.78961
  Prefactor  = 0.0001
  norm       = 10.5034
  Normalizat = 0.985816
  Prefactor  = 0.996026
 **********
 **   18 **HESSE 
 **********

 FCN=   6525.459     FROM HESSE     STATUS=OK           407 CALLS     3202 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.5700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.2582        11.273        .97679E-03   -1.5295    
   5  Prefactor     .10000E-03    5.6146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          22.528        20.728        .84398E-04   -1.4758    
   8  Prefactor     11.337        24.878        .11898E-03   -1.5034    
   9  norm          1.6524        10.489        .32547E-03   -1.5451    
  10  Prefactor     .25524        24.462        .27495E-02   -1.5607    
  11  Prefactor     .10000E-03    57.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.0147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.493        36.603        .66316E-04   -1.4499    
  14  Prefactor     7.8299        18.373        .14332E-03   -1.5148    
  15  Prefactor     .10000E-03    36.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10095E-03    29.760        .10742       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.104        15.437        .85190E-04   -1.4767    
  18  norm          3.7009        1.3189        .52970E-04   -1.5323    
  19  Prefactor     .10000E-03    87.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.7896        7.6620        .10372E-02   -1.5319    
  21  Prefactor     .10000E-03    3.2735        .14225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.503        6.2774        .12361E-03   -1.5060    
  23  Normalizat    .98582        .30363        .37876E-03   -.93507    
  24  Prefactor     .99603        .14023        .17492E-03   -.92862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25177e-09
Minuit parameter uncertainties:
  1  5.0308e-05
  2  9.88423e-06
  3  4.51967e-06
  4  11.2788
  5  5.04386e-06
  6  1.04797e-05
  7  20.7342
  8  24.9004
  9  8.32809
  10  4.99857
  11  8.76631e-05
  12  2.21532e-06
  13  36.6258
  14  18.3858
  15  5.55948e-05
  16  0.0106242
  17  15.4394
  18  1.31892
  19  0.000170992
  20  7.66395
  21  4.10716e-06
  22  6.27783
  23  0.304161
  24  0.140278
Done.

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

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  3.649e+01  3.663e+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.960e-01  1.403e-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:  9.858e-01  3.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.87
Ra Dec: 182.901 -27.588
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 6.12e-08 +/- 6.14e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.65e-05

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

Saving results to:
/scratch/kocevski/395571/likelihoodResults_351043201_351302401_4FGL_J1211.6-2735_daily_bin431.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) = 6525.44919999
delta logL = 0.00973513333793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6525.44656891
delta logL = 0.0123662131755

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.178       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4583       1.0000          .0000       10.000    
     3 'Normalizat'    .99267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99416       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=   6525.447     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      258 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.182        41.682        .64037E-04   -.32514E-03
   2  Index         2.4583        .73580        .80542E-02   -.21086E-03
   3  Normalizat    .99227        .29886        .37767E-03    .22691E-03
   4  Prefactor     .99435        .13807        .17505E-03    .59432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.1821
  Index      = 2.45831
  Normalizat = 0.992267
  Prefactor  = 0.994348
 **********
 **   18 **HESSE 
 **********

 FCN=   6525.447     FROM HESSE     STATUS=OK            23 CALLS      281 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.182        40.917        .12807E-04   -1.4455    
   2  Index         2.4583        .72172        .32217E-03   -.53325    
   3  Normalizat    .99227        .29897        .15107E-04   -.93290    
   4  Prefactor     .99435        .13813        .35011E-04   -.92918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63896e-09
Minuit parameter uncertainties:
  1  40.9467
  2  0.725148
  3  0.299474
  4  0.138183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395571': 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) = 6525.44656793
delta logL = 0.0123671971251

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  3.918e+01  4.095e+01  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.458e+00  7.251e-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:  9.943e-01  1.382e-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:  9.923e-01  2.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 182.901 -27.588
Photon Index (Free Index): 2.46 +/- 0.73
Photon Flux (Free Index): 5.53e-08 +/- 6.76e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.68e-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/395571/cmap_HighResolution_351043201_351302401_4FGL_J1211.6-2735_daily_bin431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', comment='SUCCESS', photon_flux='6.12e-08', energy_flux2='1.68e-05', photon_flux_error='6.14e-08', dlogl='1.24e-02', energy_flux='1.65e-05', photon_flux2='5.53e-08', job_status='DONE', time_completed='2021-09-05 03:31:22.185540', photon_index_error2='0.73', photon_index2='2.46', ts='1.87', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.94e-07', energy_flux_error2='1.68e-05', EG='0.99', time_epoch_completed='1630837882.19', return_code='0', job_id='395571', GAL2='0.99', EG2='0.99', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='6.76e-08', ts2='1.88', photon_index='2.57' WHERE bin_id='431' AND source_name='4FGL J1211.6-2735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:31:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 395571: <4FGL_J1211.6-2735_daily_bin431> in cluster <slac> Done

Job <4FGL_J1211.6-2735_daily_bin431> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 03:15:49 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:15:51 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:15:51 2021
Terminated at Sun Sep  5 03:31:22 2021
Results reported at Sun Sep  5 03:31:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1211.6-2735_daily_bin431 182.901 -27.5877 351043201 351302401 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 :                                   774.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

