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


Performing analysis on: 4FGL_J1211.6-2735_daily_bin998
RA = 182.901, Dec = -27.5877
tmin = 498009601, tmax = 498268801
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='400138', job_status='RUN', time_executed='2021-09-05 03:33:04.119976', time_epoch_executed='1630837984.12' WHERE source_name='4FGL J1211.6-2735' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/400138

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/400138/ft1_4FGL_J1211.6-2735_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/400138/ft2_4FGL_J1211.6-2735_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/400138/ft1_4FGL_J1211.6-2735_daily_bin998.fits outfile=/scratch/kocevski/400138/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin998.fits ra=182.901 dec=-27.5877 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.13
user 7.78
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/400138/ft1_filtered_4FGL_J1211.6-2735_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/400138/ft2_4FGL_J1211.6-2735_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/400138/ltcube_498009601_498268801_4FGL_J1211.6-2735_daily_bin998.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/400138/ft2_4FGL_J1211.6-2735_daily_bin998.fits
.....................!
real 11.87
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/400138/ft1_filtered_4FGL_J1211.6-2735_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/400138/ft2_4FGL_J1211.6-2735_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/400138/ltcube_498009601_498268801_4FGL_J1211.6-2735_daily_bin998.fits outfile=/scratch/kocevski/400138/expmap_498009601_498268801_4FGL_J1211.6-2735_daily_bin998.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/400138/ltcube_498009601_498268801_4FGL_J1211.6-2735_daily_bin998.fits
.....................!
real 190.47
user 185.16
sys 4.59

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/400138/ft1_filtered_4FGL_J1211.6-2735_daily_bin998.fits scfile=/scratch/kocevski/400138/ft2_4FGL_J1211.6-2735_daily_bin998.fits outfile=/scratch/kocevski/400138/cmap_498009601_498268801_4FGL_J1211.6-2735_daily_bin998.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/400138/ft1_filtered_4FGL_J1211.6-2735_daily_bin998.fits scfile=/scratch/kocevski/400138/ft2_4FGL_J1211.6-2735_daily_bin998.fits outfile=/scratch/kocevski/400138/cmap_HighResolution_498009601_498268801_4FGL_J1211.6-2735_daily_bin998.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/400138/ft1_filtered_4FGL_J1211.6-2735_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/400138/ft2_4FGL_J1211.6-2735_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/400138/Model_4FGL_J1211.6-2735_daily_bin998.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/400138/ft1_filtered_4FGL_J1211.6-2735_daily_bin998.fits......................!
real 63.22
user 61.22
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.181       1.0000         .10000E-03   10000.    
     4 'norm      '    12.140       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.9837       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    38.916       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.280       1.0000         .10000E-03   10000.    
     9 'norm      '    .19963E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    124.10       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.835       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1351       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.197       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2352       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.0921       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .84582       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1067       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=   3364.307     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     3120 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.241        .23467E-05** at limit **
   2  Prefactor     .10000E-03    11.096        .17027E-06** at limit **
   3  Prefactor     11.162        30.212        .21340E-04   -.15871E-04
   4  norm          12.140        15.883       -.14663E-05   -.38921E-04
   5  Prefactor     9.9841        11.021        .18545E-05   -.14279E-03
   6  Prefactor     .10000E-03    30.844       -.33612E-04** at limit **
   7  norm          38.916        45.798        .32718E-05   -.15521E-04
   8  Prefactor     21.221        44.259        .17969E-05   -.57414E-03
   9  norm          .10234E-03    21.234        .22591E-05** at limit **
  10  Prefactor     .10000E-03    4.0248       -.13851E-06** at limit **
  11  Prefactor     124.06        111.67       -.34742E-04   -.25852E-03
  12  Prefactor     .10000E-03    13.791        .56689E-06** at limit **
  13  Prefactor     24.802        43.972        .64986E-05   -.59681E-04
  14  Prefactor     .10004E-03    32.602        .31164E-04** at limit **
  15  Prefactor     6.2829        277.02        .28039E-03   -.26690E-04
  16  Prefactor     .10000E-03    12.367       -.41075E-06** at limit **
  17  Prefactor     42.191        31.483        .11126E-04   -.97716E-04
  18  norm          2.2352        1.5495        .21345E-06   -.29037E-03
  19  Prefactor     .10000E-03    46.310       -.54711E-05** at limit **
  20  norm          .10000E-03    4.6557        .25535E-07** at limit **
  21  Prefactor     .10000E-03    3.5452        .12299E-06** at limit **
  22  norm          5.0916        11.279        .86459E-06   -.10081E-03
  23  Normalizat    .84584        .39504       -.13344E-04   -.29981E-03
  24  Prefactor     1.1067        .17915       -.42744E-05   -.35215E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1615
  norm       = 12.1399
  Prefactor  = 9.98407
  Prefactor  = 0.0001
  norm       = 38.9161
  Prefactor  = 21.2211
  norm       = 0.000102342
  Prefactor  = 0.0001
  Prefactor  = 124.058
  Prefactor  = 0.0001
  Prefactor  = 24.802
  Prefactor  = 0.000100037
  Prefactor  = 6.2829
  Prefactor  = 0.0001
  Prefactor  = 42.1909
  norm       = 2.23524
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.09158
  Normalizat = 0.845844
  Prefactor  = 1.10669
 **********
 **   18 **HESSE 
 **********

 FCN=   3364.307     FROM HESSE     STATUS=OK           395 CALLS     3515 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.162        30.197        .11981E-03   -1.5040    
   4  norm          12.140        15.885        .11497E-03   -1.5011    
   5  Prefactor     9.9841        11.034        .12682E-03   -1.5076    
   6  Prefactor     .10000E-03    30.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          38.916        45.825        .64251E-04   -1.4459    
   8  Prefactor     21.221        46.269        .86828E-04   -1.4786    
   9  norm          .10234E-03    29.895        .48592E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0339        .11360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     124.06        111.81        .18066E-03   -1.3476    
  12  Prefactor     .10000E-03    13.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.802        43.968        .80381E-04   -1.4712    
  14  Prefactor     .10004E-03    31.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2829        272.55        .16209E-03   -1.5207    
  16  Prefactor     .10000E-03    12.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     42.191        31.503        .61712E-04   -1.4408    
  18  norm          2.2352        1.5498        .57800E-04   -1.5409    
  19  Prefactor     .10000E-03    46.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.6658        .12223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5520        .10666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.0916        11.277        .17818E-03   -1.5257    
  23  Normalizat    .84584        .44085        .43237E-03   -.98390    
  24  Prefactor     1.1067        .20235        .18050E-03   -.89253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67747e-09
Minuit parameter uncertainties:
  1  1.32377e-05
  2  3.67489e-05
  3  30.238
  4  15.8908
  5  11.0361
  6  8.60159e-06
  7  45.8662
  8  46.3471
  9  0.0167439
  10  3.5227e-05
  11  112.005
  12  6.16179e-05
  13  44.0256
  14  0.00218211
  15  83.1682
  16  3.86727e-06
  17  31.5152
  18  1.54987
  19  6.91872e-06
  20  6.0522e-06
  21  7.69524e-06
  22  11.2816
  23  0.442733
  24  0.202491
Done.

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

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  2.480e+01  4.403e+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.107e+00  2.025e-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.458e-01  4.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/400138/likelihoodResults_498009601_498268801_4FGL_J1211.6-2735_daily_bin998.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) = 3363.73771013
delta logL = 0.569540128552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3363.67185522
delta logL = 0.635395037893

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.124       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6002       1.0000          .0000       10.000    
     3 'Normalizat'    .87647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0946       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=   3363.672     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      215 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.094        58.568       -.16279E-04   -.46232E-04
   2  Index         1.6015        .72620       -.58948E-04    .25837E-04
   3  Normalizat    .87802        .36667        .33278E-05    .23304E-03
   4  Prefactor     1.0941        .17407       -.36010E-07    .36869E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.094
  Index      = 1.60146
  Normalizat = 0.87802
  Prefactor  = 1.09414
 **********
 **   18 **HESSE 
 **********

 FCN=   3363.672     FROM HESSE     STATUS=OK            29 CALLS      244 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.094        57.634        .30524E-03   -1.4394    
   2  Index         1.6015        .71412        .85814E-02   -.74737    
   3  Normalizat    .87802        .41178        .42506E-03   -.97237    
   4  Prefactor     1.0941        .19604        .18119E-03   -.89654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64801e-10
Minuit parameter uncertainties:
  1  57.7087
  2  0.718709
  3  0.413268
  4  0.196167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/400138': 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) = 3363.67184399
delta logL = 0.635406268424

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  4.309e+01  5.771e+01  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  1.601e+00  7.187e-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:  1.094e+00  1.962e-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.780e-01  4.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 182.901 -27.588
Photon Index (Free Index): 1.60 +/- 0.72
Photon Flux (Free Index): 2.27e-08 +/- 3.59e-08
Energy Flux (Free Index): 5.10e-05 +/- 9.26e-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/400138/cmap_HighResolution_498009601_498268801_4FGL_J1211.6-2735_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-02', comment='SUCCESS', energy_flux2='5.10e-05', dlogl='6.35e-01', photon_flux2='2.27e-08', job_status='DONE', time_completed='2021-09-05 03:43:04.469810', photon_index_error2='0.72', photon_index2='1.60', ts='0.45', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='2.46e-07', energy_flux_error2='9.26e-05', EG='0.85', time_epoch_completed='1630838584.47', return_code='0', job_id='400138', GAL2='1.09', EG2='0.88', return_code2='0', photon_flux_error2='3.59e-08', ts2='1.73', photon_index='2.57' WHERE bin_id='998' AND source_name='4FGL J1211.6-2735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:43:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 400138: <4FGL_J1211.6-2735_daily_bin998> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1211.6-2735_daily_bin998 182.901 -27.5877 498009601 498268801 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 :                                   581.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            759 sec.

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

