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


Performing analysis on: 4FGL_J1211.6-2735_daily_bin126
RA = 182.901, Dec = -27.5877
tmin = 271987201, tmax = 272246401
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='393311', job_status='RUN', time_executed='2021-09-05 03:10:56.687140', time_epoch_executed='1630836656.69' WHERE source_name='4FGL J1211.6-2735' and cadence='daily' and bin_id='126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393311

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393311/ft1_4FGL_J1211.6-2735_daily_bin126.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393311/ft2_4FGL_J1211.6-2735_daily_bin126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393311/ft1_4FGL_J1211.6-2735_daily_bin126.fits outfile=/scratch/kocevski/393311/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin126.fits ra=182.901 dec=-27.5877 rad=12.0 tmin=271987201.0 tmax=272246401.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 1.73
user 1.46
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/393311/ft2_4FGL_J1211.6-2735_daily_bin126.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/393311/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin126.fits evtable="EVENTS" outfile="/scratch/kocevski/393311/ft1_filtered_4FGL_J1211.6-2735_daily_bin126.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.56
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393311/ft1_filtered_4FGL_J1211.6-2735_daily_bin126.fits" evtable="EVENTS" scfile=/scratch/kocevski/393311/ft2_4FGL_J1211.6-2735_daily_bin126.fits sctable="SC_DATA" outfile=/scratch/kocevski/393311/ltcube_271987201_272246401_4FGL_J1211.6-2735_daily_bin126.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/393311/ft2_4FGL_J1211.6-2735_daily_bin126.fits
.....................!
real 19.08
user 18.65
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393311/ft1_filtered_4FGL_J1211.6-2735_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/393311/ft2_4FGL_J1211.6-2735_daily_bin126.fits sctable="SC_DATA" expcube=/scratch/kocevski/393311/ltcube_271987201_272246401_4FGL_J1211.6-2735_daily_bin126.fits outfile=/scratch/kocevski/393311/expmap_271987201_272246401_4FGL_J1211.6-2735_daily_bin126.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/393311/ltcube_271987201_272246401_4FGL_J1211.6-2735_daily_bin126.fits
.....................!
real 190.69
user 185.25
sys 4.94

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/393311/ft1_filtered_4FGL_J1211.6-2735_daily_bin126.fits scfile=/scratch/kocevski/393311/ft2_4FGL_J1211.6-2735_daily_bin126.fits outfile=/scratch/kocevski/393311/cmap_271987201_272246401_4FGL_J1211.6-2735_daily_bin126.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.54
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393311/ft1_filtered_4FGL_J1211.6-2735_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/393311/ft2_4FGL_J1211.6-2735_daily_bin126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393311/Model_4FGL_J1211.6-2735_daily_bin126.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/393311/ft1_filtered_4FGL_J1211.6-2735_daily_bin126.fits.....................!
real 142.96
user 141.28
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.593       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13150E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39355E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.852       1.0000         .10000E-03   10000.    
     9 'norm      '    6.7346       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3834       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9332       1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.664       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5888       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11375E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.930       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1239       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.212       1.0000         .10000E-03   10000.    
    20 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2529       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0001       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=   8454.298     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     3215 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.589        28.341        .30834E-05   -.14130E-04
   2  Prefactor     .10000E-03    5.9241       -.60892E-07** at limit **
   3  Prefactor     .10000E-03    7.7768       -.18908E-06** at limit **
   4  norm          .10000E-03    11.598       -.24955E-05** at limit **
   5  Prefactor     .10000E-03    4.0623        .12943E-05** at limit **
   6  Prefactor     .10640E-03    23.549       -.23527E-05** at limit **
   7  norm          .10000E-03    32.393       -.50470E-06** at limit **
   8  Prefactor     29.853        17.115       -.20106E-06   -.81318E-04
   9  norm          6.7350        4.7205        .39506E-07   -.16909E-03
  10  Prefactor     3.3825        5.2697       -.49123E-06   -.70072E-03
  11  Prefactor     .10000E-03    21.835       -.38113E-06** at limit **
  12  Prefactor     6.9300        13.603        .16722E-05   -.53802E-04
  13  Prefactor     47.662        37.783        .64638E-06   -.36328E-04
  14  Prefactor     5.5838        19.035        .12895E-04   -.26141E-04
  15  Prefactor     .10012E-03    253.79       -.22250E-05** at limit **
  16  Prefactor     .10000E-03    6.8389        .18896E-06** at limit **
  17  Prefactor     24.930        14.677       -.22900E-06   -.25957E-04
  18  norm          1.1238        .78558       -.10349E-06   -.65859E-03
  19  Prefactor     26.242        75.452        .42979E-04    .22486E-04
  20  norm          .10002E-03    10.474       -.14561E-05** at limit **
  21  Prefactor     .10000E-03    2.3620       -.30215E-06** at limit **
  22  norm          .10000E-03    2.1961        .20908E-06** at limit **
  23  Normalizat    1.2527        .23940       -.22705E-05   -.93936E-04
  24  Prefactor     1.0002        .10774       -.76899E-06   -.82742E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000106404
  norm       = 0.0001
  Prefactor  = 29.8525
  norm       = 6.73502
  Prefactor  = 3.38249
  Prefactor  = 0.0001
  Prefactor  = 6.93004
  Prefactor  = 47.6622
  Prefactor  = 5.58379
  Prefactor  = 0.000100119
  Prefactor  = 0.0001
  Prefactor  = 24.9295
  norm       = 1.12383
  Prefactor  = 26.2422
  norm       = 0.000100016
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.25274
  Prefactor  = 1.00017
 **********
 **   18 **HESSE 
 **********

 FCN=   8454.298     FROM HESSE     STATUS=OK           407 CALLS     3622 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.589        28.319        .10143E-03   -1.4918    
   2  Prefactor     .10000E-03    5.9465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.7990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    11.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.337        .34137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10640E-03    24.558        .13482       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    32.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.853        17.139        .73330E-04   -1.4615    
   9  norm          6.7350        4.7182        .14580E-03   -1.5189    
  10  Prefactor     3.3825        5.2355        .21997E-03   -1.5340    
  11  Prefactor     .10000E-03    21.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9300        13.590        .15237E-03   -1.5181    
  13  Prefactor     47.662        37.658        .58080E-04   -1.4326    
  14  Prefactor     5.5838        18.798        .16994E-03   -1.5235    
  15  Prefactor     .10012E-03    257.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.8465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.930        14.691        .80229E-04   -1.4709    
  18  norm          1.1238        .78300        .65647E-04   -1.5496    
  19  Prefactor     26.242        75.334        .78246E-04   -1.4683    
  20  norm          .10002E-03    10.828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.3769        .13808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.2081        .13306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2527        .28734        .35789E-03   -.84988    
  24  Prefactor     1.0002        .13061        .18362E-03   -.92724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41119e-09
Minuit parameter uncertainties:
  1  28.3431
  2  3.02215e-06
  3  1.93922e-05
  4  6.90379e-05
  5  9.92543e-05
  6  0.0250913
  7  8.82987e-05
  8  17.1415
  9  4.71843
  10  5.23623
  11  7.35716e-05
  12  13.5964
  13  37.6767
  14  18.8184
  15  0.0111114
  16  5.98637e-06
  17  14.6936
  18  0.783004
  19  75.6091
  20  0.000835932
  21  5.77173e-05
  22  4.75445e-06
  23  0.287708
  24  0.130654
Done.

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

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  4.766e+01  3.768e+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:  1.000e+00  1.307e-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.253e+00  2.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.41
Ra Dec: 182.901 -27.588
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 7.99e-08 +/- 6.31e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.70e-05

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

Saving results to:
/scratch/kocevski/393311/likelihoodResults_271987201_272246401_4FGL_J1211.6-2735_daily_bin126.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) = 8453.17895838
delta logL = 1.11945678497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8453.07987347
delta logL = 1.21854169923

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3351       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9524       1.0000          .0000       10.000    
     3 'Normalizat'    1.1270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0482       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=   8453.080     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      271 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3299        9.1447        .94933E-02    .17187E-02
   2  Index         4.9543        2.2537        .10671        .32074E-03
   3  Normalizat    1.1270        .69192E-01    .84504E-01    .10538E-03
   4  Prefactor     1.0482        .32169E-01    .40018E-01    .92387E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32989
  Index      = 4.95427
  Normalizat = 1.12699
  Prefactor  = 1.04818
 **********
 **   18 **HESSE 
 **********

 FCN=   8453.080     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      302 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3299        18.113        .53698E-04   -1.5477    
   2  Index         4.9543        3.4517        .41491E-02   -.91469E-02
   3  Normalizat    1.1270        .24959        .37417E-03   -.88890    
   4  Prefactor     1.0482        .11506        .17986E-03   -.91140    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.50785e-10
Minuit parameter uncertainties:
  1  9.81929
  2  3.8098
  3  0.249856
  4  0.115083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393311': 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) = 8453.07987278
delta logL = 1.21854239009

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  1.330e+00  9.819e+00  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  4.954e+00  3.810e+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.048e+00  1.151e-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.127e+00  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.21
Ra Dec: 182.901 -27.588
Photon Index (Free Index): 4.95 +/- 3.81
Photon Flux (Free Index): 1.55e-07 +/- 8.16e-08
Energy Flux (Free Index): 2.07e-05 +/- 1.36e-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/393311/cmap_HighResolution_271987201_272246401_4FGL_J1211.6-2735_daily_bin126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-02', comment='SUCCESS', photon_flux='7.99e-08', energy_flux2='2.07e-05', photon_flux_error='6.31e-08', dlogl='1.22e+00', energy_flux='2.15e-05', photon_flux2='1.55e-07', job_status='DONE', time_completed='2021-09-05 03:27:15.018861', photon_index_error2='3.81', photon_index2='4.95', ts='2.41', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.96e-07', energy_flux_error2='1.36e-05', EG='1.25', time_epoch_completed='1630837635.02', return_code='0', job_id='393311', GAL2='1.05', EG2='1.13', return_code2='102', energy_flux_error='1.70e-05', photon_flux_error2='8.16e-08', ts2='5.21', photon_index='2.57' WHERE bin_id='126' AND source_name='4FGL J1211.6-2735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:27:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 393311: <4FGL_J1211.6-2735_daily_bin126> in cluster <slac> Done

Job <4FGL_J1211.6-2735_daily_bin126> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 03:10:42 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:10:43 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:43 2021
Terminated at Sun Sep  5 03:27:15 2021
Results reported at Sun Sep  5 03:27:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1211.6-2735_daily_bin126 182.901 -27.5877 271987201 272246401 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 :                                   974.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             349.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            993 sec.

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

