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


Performing analysis on: 4FGL_J1211.6-2735_daily_bin1177
RA = 182.901, Dec = -27.5877
tmin = 544406401, tmax = 544665601
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='400421', job_status='RUN', time_executed='2021-09-05 03:31:02.482823', time_epoch_executed='1630837862.48' WHERE source_name='4FGL J1211.6-2735' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/400421

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/400421/ft1_4FGL_J1211.6-2735_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/400421/ft2_4FGL_J1211.6-2735_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/400421/ft1_4FGL_J1211.6-2735_daily_bin1177.fits outfile=/scratch/kocevski/400421/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin1177.fits ra=182.901 dec=-27.5877 rad=12.0 tmin=544406401.0 tmax=544665601.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 7.91
user 7.39
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/400421/ft1_filtered_4FGL_J1211.6-2735_daily_bin1177.fits" evtable="EVENTS" scfile=/scratch/kocevski/400421/ft2_4FGL_J1211.6-2735_daily_bin1177.fits sctable="SC_DATA" outfile=/scratch/kocevski/400421/ltcube_544406401_544665601_4FGL_J1211.6-2735_daily_bin1177.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/400421/ft2_4FGL_J1211.6-2735_daily_bin1177.fits
.....................!
real 7.92
user 7.57
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/400421/ft1_filtered_4FGL_J1211.6-2735_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/400421/ft2_4FGL_J1211.6-2735_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/400421/ltcube_544406401_544665601_4FGL_J1211.6-2735_daily_bin1177.fits outfile=/scratch/kocevski/400421/expmap_544406401_544665601_4FGL_J1211.6-2735_daily_bin1177.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/400421/ltcube_544406401_544665601_4FGL_J1211.6-2735_daily_bin1177.fits
.....................!
real 195.44
user 189.54
sys 5.03

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/400421/ft1_filtered_4FGL_J1211.6-2735_daily_bin1177.fits scfile=/scratch/kocevski/400421/ft2_4FGL_J1211.6-2735_daily_bin1177.fits outfile=/scratch/kocevski/400421/cmap_544406401_544665601_4FGL_J1211.6-2735_daily_bin1177.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/400421/ft1_filtered_4FGL_J1211.6-2735_daily_bin1177.fits scfile=/scratch/kocevski/400421/ft2_4FGL_J1211.6-2735_daily_bin1177.fits outfile=/scratch/kocevski/400421/cmap_HighResolution_544406401_544665601_4FGL_J1211.6-2735_daily_bin1177.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/400421/ft1_filtered_4FGL_J1211.6-2735_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/400421/ft2_4FGL_J1211.6-2735_daily_bin1177.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/400421/Model_4FGL_J1211.6-2735_daily_bin1177.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/400421/ft1_filtered_4FGL_J1211.6-2735_daily_bin1177.fits.....................!
real 133.17
user 130.74
sys 1.88

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3907       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16087E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.2391       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12994E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2101       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0834       1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.718       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10992E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.108       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14126E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.973       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3118       1.0000         .10000E-03   10000.    
    19 'Prefactor '    94.194       1.0000         .10000E-03   10000.    
    20 'norm      '    .16810E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.6078       1.0000         .10000E-03   10000.    
    22 'norm      '    15.161       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83834       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0547       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=   8014.560     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2789 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.891       -.19169E-06** at limit **
   2  Prefactor     .10000E-03    11.072       -.58024E-07** at limit **
   3  Prefactor     .10000E-03    4.0486       -.45167E-07** at limit **
   4  norm          2.3907        2.9018       -.57183E-08   -.46286E-06
   5  Prefactor     .10000E-03    2.7417       -.25463E-06** at limit **
   6  Prefactor     .10000E-03    17.584       -.20740E-06** at limit **
   7  norm          9.2390        17.094       -.85506E-08    .20901E-05
   8  Prefactor     .10000E-03    32.648        .10233E-05** at limit **
   9  norm          3.2152        4.4939        .16089E-06   -.16394E-04
  10  Prefactor     3.0852        4.4366        .94351E-06    .39767E-04
  11  Prefactor     39.761        59.963       -.18646E-05    .15657E-04
  12  Prefactor     .10000E-03    12.872       -.27292E-06** at limit **
  13  Prefactor     20.102        35.944       -.59085E-06    .68092E-05
  14  Prefactor     .10000E-03    15.031        .81227E-06** at limit **
  15  Prefactor     .10000E-03    184.97        .21485E-05** at limit **
  16  Prefactor     12.969        26.050       -.10185E-06   -.45301E-05
  17  Prefactor     .10000E-03    3.9317       -.12599E-08** at limit **
  18  norm          1.3114        .88296        .33886E-10   -.63792E-03
  19  Prefactor     94.270        76.344       -.40264E-05   -.25156E-03
  20  norm          .10022E-03    6.4774        .23301E-05** at limit **
  21  Prefactor     9.6069        6.2819       -.24570E-06   -.10862E-02
  22  norm          15.161        5.7488       -.63770E-08   -.29061E-04
  23  Normalizat    .83835        .22926       -.76953E-07   -.13832E-03
  24  Prefactor     1.0547        .10462        .63837E-07   -.32098E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.39068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.23903
  Prefactor  = 0.0001
  norm       = 3.2152
  Prefactor  = 3.08518
  Prefactor  = 39.7614
  Prefactor  = 0.0001
  Prefactor  = 20.1018
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.9686
  Prefactor  = 0.0001
  norm       = 1.31136
  Prefactor  = 94.2705
  norm       = 0.000100215
  Prefactor  = 9.6069
  norm       = 15.1608
  Normalizat = 0.838348
  Prefactor  = 1.0547
 **********
 **   18 **HESSE 
 **********

 FCN=   8014.560     FROM HESSE     STATUS=OK           401 CALLS     3190 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.0583        .17592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3907        2.8979        .16397E-03   -1.5399    
   5  Prefactor     .10000E-03    6.1927        .28516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.2390        17.095        .13185E-03   -1.5100    
   8  Prefactor     .10000E-03    33.263        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2152        4.4399        .20670E-03   -1.5349    
  10  Prefactor     3.0852        4.4085        .10168E-02   -1.5357    
  11  Prefactor     39.761        59.394        .63601E-04   -1.4446    
  12  Prefactor     .10000E-03    13.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.102        35.971        .89320E-04   -1.4811    
  14  Prefactor     .10000E-03    15.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    186.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.969        25.969        .11121E-03   -1.4988    
  17  Prefactor     .10000E-03    3.9441        .17336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3114        .87578        .65715E-04   -1.5479    
  19  Prefactor     94.270        77.180        .20705E-03   -1.3763    
  20  norm          .10022E-03    40.584        .32986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.6069        6.1373        .12929E-03   -1.5088    
  22  norm          15.161        5.7478        .10286E-03   -1.4929    
  23  Normalizat    .83835        .26273        .39053E-03   -.98662    
  24  Prefactor     1.0547        .12161        .16681E-03   -.90928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40703e-09
Minuit parameter uncertainties:
  1  1.17968e-05
  2  1.58981e-05
  3  2.26415e-06
  4  2.8981
  5  1.85157e-05
  6  2.54333e-05
  7  17.1042
  8  0.000107918
  9  4.44035
  10  4.40894
  11  59.4822
  12  1.19371e-05
  13  36.0095
  14  1.4008e-05
  15  0.00105528
  16  25.9918
  17  1.39948e-07
  18  0.875786
  19  77.2618
  20  0.00591485
  21  6.13769
  22  5.74799
  23  0.263128
  24  0.121641
Done.

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

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  2.010e+01  3.601e+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.055e+00  1.216e-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:  8.383e-01  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/400421/likelihoodResults_544406401_544665601_4FGL_J1211.6-2735_daily_bin1177.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) = 8012.66335786
delta logL = 1.89674293676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8012.48695087
delta logL = 2.07314992332

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20399       1.0000         .10000E-03   10000.    
     2 'Index     '    5.7779       1.0000          .0000       10.000    
     3 'Normalizat'    .72201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0923       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=   8012.487     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      308 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20048        1.6066        .49849E-02    .26030E-02
   2  Index         5.7876        2.3363        .11154        .23187E-03
   3  Normalizat    .72175        .61765E-01    .94236E-01    .49886E-04
   4  Prefactor     1.0925        .29334E-01    .37889E-01    .11474E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.200482
  Index      = 5.78756
  Normalizat = 0.721745
  Prefactor  = 1.09252
 **********
 **   18 **HESSE 
 **********

 FCN=   8012.487     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      343 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20048        3.3341        .22617E-03   -1.5618    
   2  Index         5.7876        3.6090        .43959E-02    .15817    
   3  Normalizat    .72175        .20552        .41752E-03   -1.0304    
   4  Prefactor     1.0925        .96529E-01    .16408E-03   -.89706    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.21005e-10
Minuit parameter uncertainties:
  1  1.63484
  2  4.04716
  3  0.205736
  4  0.0965449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/400421': 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) = 8012.48693403
delta logL = 2.07316677019

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  2.005e-01  1.635e+00  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  5.788e+00  4.047e+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.093e+00  9.654e-02  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:  7.217e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.88
Ra Dec: 182.901 -27.588
Photon Index (Free Index): 5.79 +/- 4.05
Photon Flux (Free Index): 1.18e-07 +/- 6.98e-08
Energy Flux (Free Index): 1.49e-05 +/- 1.05e-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/400421/cmap_HighResolution_544406401_544665601_4FGL_J1211.6-2735_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', energy_flux2='1.49e-05', dlogl='2.07e+00', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-05 03:46:36.042916', photon_index_error2='4.05', photon_index2='5.79', ts='0.43', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.05e-05', EG='0.84', time_epoch_completed='1630838796.04', return_code='0', job_id='400421', GAL2='1.09', EG2='0.72', return_code2='102', photon_flux_error2='6.98e-08', ts2='4.88', photon_index='2.57' WHERE bin_id='1177' AND source_name='4FGL J1211.6-2735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:46:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 400421: <4FGL_J1211.6-2735_daily_bin1177> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1211.6-2735_daily_bin1177 182.901 -27.5877 544406401 544665601 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 :                                   926.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            947 sec.

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

