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


Performing analysis on: 4FGL_J1211.6-2735_daily_bin337
RA = 182.901, Dec = -27.5877
tmin = 326678401, tmax = 326937601
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='395421', job_status='RUN', time_executed='2021-09-05 03:15:52.093580', time_epoch_executed='1630836952.09' WHERE source_name='4FGL J1211.6-2735' and cadence='daily' and bin_id='337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395421

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395421/ft1_4FGL_J1211.6-2735_daily_bin337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395421/ft2_4FGL_J1211.6-2735_daily_bin337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395421/ft1_4FGL_J1211.6-2735_daily_bin337.fits outfile=/scratch/kocevski/395421/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin337.fits ra=182.901 dec=-27.5877 rad=12.0 tmin=326678401.0 tmax=326937601.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.70
user 3.21
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395421/ft1_filtered_4FGL_J1211.6-2735_daily_bin337.fits" evtable="EVENTS" scfile=/scratch/kocevski/395421/ft2_4FGL_J1211.6-2735_daily_bin337.fits sctable="SC_DATA" outfile=/scratch/kocevski/395421/ltcube_326678401_326937601_4FGL_J1211.6-2735_daily_bin337.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/395421/ft2_4FGL_J1211.6-2735_daily_bin337.fits
.....................!
real 12.39
user 12.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395421/ft1_filtered_4FGL_J1211.6-2735_daily_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/395421/ft2_4FGL_J1211.6-2735_daily_bin337.fits sctable="SC_DATA" expcube=/scratch/kocevski/395421/ltcube_326678401_326937601_4FGL_J1211.6-2735_daily_bin337.fits outfile=/scratch/kocevski/395421/expmap_326678401_326937601_4FGL_J1211.6-2735_daily_bin337.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/395421/ltcube_326678401_326937601_4FGL_J1211.6-2735_daily_bin337.fits
.....................!
real 191.30
user 185.90
sys 4.93

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/395421/ft1_filtered_4FGL_J1211.6-2735_daily_bin337.fits scfile=/scratch/kocevski/395421/ft2_4FGL_J1211.6-2735_daily_bin337.fits outfile=/scratch/kocevski/395421/cmap_326678401_326937601_4FGL_J1211.6-2735_daily_bin337.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.60
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395421/ft1_filtered_4FGL_J1211.6-2735_daily_bin337.fits scfile=/scratch/kocevski/395421/ft2_4FGL_J1211.6-2735_daily_bin337.fits outfile=/scratch/kocevski/395421/cmap_HighResolution_326678401_326937601_4FGL_J1211.6-2735_daily_bin337.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.59
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395421/ft1_filtered_4FGL_J1211.6-2735_daily_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/395421/ft2_4FGL_J1211.6-2735_daily_bin337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395421/Model_4FGL_J1211.6-2735_daily_bin337.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/395421/ft1_filtered_4FGL_J1211.6-2735_daily_bin337.fits.....................!
real 130.61
user 128.62
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.9041       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3036       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .45770E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7490       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9305       1.0000         .10000E-03   10000.    
     9 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2940       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .95014       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12516E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.518       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.0117       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.161       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2580       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92975       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7624.956     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     3185 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10100E-03    22.021         .0000    ** at limit **
   2  Prefactor     3.9043        8.3811         .0000        .44740E-02
   3  Prefactor     7.3032        12.053         .0000       -.10956E-03
   4  norm          .10000E-03    2.9833         .0000    ** at limit **
   5  Prefactor     .10736E-03    2.4516         .0000    ** at limit **
   6  Prefactor     2.7478        27.378         .0000        .28880E-03
   7  norm          .10000E-03    5.1304         .0000    ** at limit **
   8  Prefactor     7.9344        12.280         .0000        .59436E-03
   9  norm          .10000E-03    2.5550         .0000    ** at limit **
  10  Prefactor     7.2944        6.0423         .0000        .50160E-02
  11  Prefactor     .10001E-03    15.238         .0000    ** at limit **
  12  Prefactor     .94956        11.271         .0000        .29401E-01
  13  Prefactor     .10114E-03    23.505         .0000    ** at limit **
  14  Prefactor     .10000E-03    11.236         .0000    ** at limit **
  15  Prefactor     .10433E-03    25.931         .0000    ** at limit **
  16  Prefactor     22.520        26.457         .0000        .33620E-03
  17  Prefactor     .10000E-03    8.7773         .0000    ** at limit **
  18  norm          6.0117        1.6948         .0000        .18606E-03
  19  Prefactor     .10034E-03    85.977         .0000    ** at limit **
  20  norm          11.159        10.311         .0000        .64880E-03
  21  Prefactor     .10000E-03    4.6093         .0000    ** at limit **
  22  norm          .10000E-03    1.2993         .0000    ** at limit **
  23  Normalizat    1.2580        .23524         .0000        .14831E-03
  24  Prefactor     .92974        .10811         .0000        .25245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100999
  Prefactor  = 3.90434
  Prefactor  = 7.30321
  norm       = 0.0001
  Prefactor  = 0.000107362
  Prefactor  = 2.74782
  norm       = 0.0001
  Prefactor  = 7.93441
  norm       = 0.0001
  Prefactor  = 7.2944
  Prefactor  = 0.000100008
  Prefactor  = 0.949557
  Prefactor  = 0.000101141
  Prefactor  = 0.000100001
  Prefactor  = 0.000104332
  Prefactor  = 22.5199
  Prefactor  = 0.0001
  norm       = 6.01172
  Prefactor  = 0.000100338
  norm       = 11.1587
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.25801
  Prefactor  = 0.929736
 **********
 **   18 **HESSE 
 **********

 FCN=   7624.956     FROM HESSE     STATUS=OK           409 CALLS     3594 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10100E-03    22.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.9043        8.3708        .10210E-02   -1.5313    
   3  Prefactor     7.3032        12.054        .14841E-03   -1.5167    
   4  norm          .10000E-03    2.9951        .14728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10736E-03    4.6392        .46392E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7478        27.323        .24553E-03   -1.5376    
   7  norm          .10000E-03    5.1315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.9344        12.233        .14238E-03   -1.5145    
   9  norm          .10000E-03    2.5916        .13570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.2944        6.0333        .14851E-03   -1.5168    
  11  Prefactor     .10001E-03    15.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .94956        11.392        .25977E-02   -1.5513    
  13  Prefactor     .10114E-03    23.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10433E-03    26.302        .14922       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.520        26.479        .84409E-04   -1.4759    
  17  Prefactor     .10000E-03    8.8042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.0117        1.6942        .57076E-04   -1.5218    
  19  Prefactor     .10034E-03    86.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.159        10.289        .11992E-03   -1.5040    
  21  Prefactor     .10000E-03    4.6181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.3002        .97203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2580        .27967        .34353E-03   -.84829    
  24  Prefactor     .92974        .12896        .18397E-03   -.95110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42657e-07
Minuit parameter uncertainties:
  1  0.00939333
  2  8.37327
  3  12.0579
  4  1.54768e-06
  5  0.0116893
  6  17.3396
  7  9.959e-06
  8  12.2372
  9  2.04124e-06
  10  6.03385
  11  0.000699224
  12  6.57904
  13  0.0103743
  14  0.000166685
  15  0.0213566
  16  26.4927
  17  5.42735e-05
  18  1.6942
  19  0.0107958
  20  10.2904
  21  3.87566e-06
  22  6.21501e-07
  23  0.280003
  24  0.129001
Done.

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

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  1.011e-04  1.037e-02  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.297e-01  1.290e-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.258e+00  2.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 182.901 -27.588
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395421/likelihoodResults_326678401_326937601_4FGL_J1211.6-2735_daily_bin337.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): 102
logL (Free Index) = 7624.95637368
delta logL = -0.000202136412554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7624.95617205
delta logL = -4.99216184835e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1322       1.0000          .0000       10.000    
     3 'Normalizat'    1.2580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92974       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=   7624.956     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      279 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10138E-03    169.00        .18142E-02** at limit **
   2  Index         3.0721        6.5525        .50000        .76656E-05
   3  Normalizat    1.2580        .17503E-01    .34353E-03    .42327E-04
   4  Prefactor     .92974        .82511E-02    .18397E-03    .55185E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101384
  Index      = 3.0721
  Normalizat = 1.25801
  Prefactor  = 0.929735
 **********
 **   18 **HESSE 
 **********

 FCN=   7624.956     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10138E-03    745.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0721        7.4891        .50000       -.39584    
   3  Normalizat    1.2580        .38393E-01    .13741E-04   -.84829    
   4  Prefactor     .92974        .18098E-01    .73587E-05   -.95110    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44037e-08
Minuit parameter uncertainties:
  1  0.0650506
  2  1038.67
  3  0.0383942
  4  0.0180978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395421': 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) = 7624.95617195
delta logL = -4.04041202273e-07

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  1.014e-04  6.505e-02  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  3.072e+00  1.039e+03  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.297e-01  1.810e-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:  1.258e+00  3.839e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.901 -27.588

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/395421/cmap_HighResolution_326678401_326937601_4FGL_J1211.6-2735_daily_bin337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.17e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-05 03:31:04.030050', job_id='395421', GAL2='0.93', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630837864.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-4.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='337' AND source_name='4FGL J1211.6-2735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:31:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 395421: <4FGL_J1211.6-2735_daily_bin337> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1211.6-2735_daily_bin337 182.901 -27.5877 326678401 326937601 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 :                                   904.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             370.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            927 sec.

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

