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


Performing analysis on: 4FGL_J1211.6-2735_daily_bin235
RA = 182.901, Dec = -27.5877
tmin = 300240001, tmax = 300499201
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='395255', job_status='RUN', time_executed='2021-09-05 03:18:48.765426', time_epoch_executed='1630837128.77' WHERE source_name='4FGL J1211.6-2735' and cadence='daily' and bin_id='235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395255/ft1_4FGL_J1211.6-2735_daily_bin235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395255/ft2_4FGL_J1211.6-2735_daily_bin235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395255/ft1_4FGL_J1211.6-2735_daily_bin235.fits outfile=/scratch/kocevski/395255/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin235.fits ra=182.901 dec=-27.5877 rad=12.0 tmin=300240001.0 tmax=300499201.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.40
user 3.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395255/ft1_filtered_4FGL_J1211.6-2735_daily_bin235.fits" evtable="EVENTS" scfile=/scratch/kocevski/395255/ft2_4FGL_J1211.6-2735_daily_bin235.fits sctable="SC_DATA" outfile=/scratch/kocevski/395255/ltcube_300240001_300499201_4FGL_J1211.6-2735_daily_bin235.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/395255/ft2_4FGL_J1211.6-2735_daily_bin235.fits
.....................!
real 12.00
user 11.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395255/ft1_filtered_4FGL_J1211.6-2735_daily_bin235.fits evtable="EVENTS" scfile=/scratch/kocevski/395255/ft2_4FGL_J1211.6-2735_daily_bin235.fits sctable="SC_DATA" expcube=/scratch/kocevski/395255/ltcube_300240001_300499201_4FGL_J1211.6-2735_daily_bin235.fits outfile=/scratch/kocevski/395255/expmap_300240001_300499201_4FGL_J1211.6-2735_daily_bin235.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/395255/ltcube_300240001_300499201_4FGL_J1211.6-2735_daily_bin235.fits
.....................!
real 190.16
user 185.56
sys 4.23

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/395255/ft1_filtered_4FGL_J1211.6-2735_daily_bin235.fits scfile=/scratch/kocevski/395255/ft2_4FGL_J1211.6-2735_daily_bin235.fits outfile=/scratch/kocevski/395255/cmap_300240001_300499201_4FGL_J1211.6-2735_daily_bin235.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395255/ft1_filtered_4FGL_J1211.6-2735_daily_bin235.fits scfile=/scratch/kocevski/395255/ft2_4FGL_J1211.6-2735_daily_bin235.fits outfile=/scratch/kocevski/395255/cmap_HighResolution_300240001_300499201_4FGL_J1211.6-2735_daily_bin235.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9353       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.828       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0560       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15535       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.940       1.0000         .10000E-03   10000.    
    18 'norm      '    5.2166       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4823       1.0000         .10000E-03   10000.    
    22 'norm      '    1.2694       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5035       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73574       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=   6246.689     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2352 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.797        .16493E-05** at limit **
   2  Prefactor     .10000E-03    4.7942       -.54578E-07** at limit **
   3  Prefactor     .10000E-03    5.8404       -.19753E-07** at limit **
   4  norm          .10000E-03    5.2163        .13132E-06** at limit **
   5  Prefactor     1.9341        4.8133       -.34779E-05   -.66481E-03
   6  Prefactor     .10000E-03    22.870       -.16756E-04** at limit **
   7  norm          14.821        20.304        .24960E-05   -.77475E-05
   8  Prefactor     .10000E-03    4.9262        .18345E-06** at limit **
   9  norm          .10000E-03    1.4522       -.68115E-07** at limit **
  10  Prefactor     9.0539        6.2180        .28110E-05   -.15780E-03
  11  Prefactor     .10000E-03    26.552        .11598E-04** at limit **
  12  Prefactor     .28909E-02    10.853        .12230E-06    .28595E-04
  13  Prefactor     .10000E-03    18.464        .13918E-04** at limit **
  14  Prefactor     .10000E-03    13.808       -.62647E-06** at limit **
  15  Prefactor     .10000E-03    78.365        .27280E-05** at limit **
  16  Prefactor     .10000E-03    16.475       -.79133E-05** at limit **
  17  Prefactor     10.934        16.410        .35555E-05   -.37960E-04
  18  norm          5.2161        1.4548       -.40437E-07   -.89345E-04
  19  Prefactor     .10000E-03    48.574       -.43615E-05** at limit **
  20  norm          .10000E-03    3.4766       -.15745E-06** at limit **
  21  Prefactor     5.4817        5.0749        .23492E-05   -.61997E-04
  22  norm          1.2691        3.0890       -.47905E-06   -.67303E-03
  23  Normalizat    1.5035        .24786       -.80758E-06    .12624E-04
  24  Prefactor     .73588        .11145       -.45483E-06    .16126E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.93407
  Prefactor  = 0.0001
  norm       = 14.8207
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.05392
  Prefactor  = 0.0001
  Prefactor  = 0.00289086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9336
  norm       = 5.21608
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.48174
  norm       = 1.26913
  Normalizat = 1.50353
  Prefactor  = 0.735878
 **********
 **   18 **HESSE 
 **********

 FCN=   6246.689     FROM HESSE     STATUS=OK           401 CALLS     2753 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.7981        .16901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.8500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.2469        .17628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9341        4.8784        .26673E-03   -1.5430    
   6  Prefactor     .10000E-03    22.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.821        20.300        .10401E-03   -1.4938    
   8  Prefactor     .10000E-03    4.9346        .17131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.4589        .92999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.0539        6.1932        .13319E-03   -1.5106    
  11  Prefactor     .10000E-03    26.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .28909E-02    16.044        .75484E-01   -1.5697    
  13  Prefactor     .10000E-03    18.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    78.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.934        16.394        .12113E-03   -1.5047    
  18  norm          5.2161        1.4550        .48397E-04   -1.5251    
  19  Prefactor     .10000E-03    48.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.4850        .14384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4817        5.0582        .16610E-03   -1.5240    
  22  norm          1.2691        3.0367        .21187E-03   -1.5483    
  23  Normalizat    1.5035        .29787        .30612E-03   -.77679    
  24  Prefactor     .73588        .13410        .18991E-03   -1.0214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4085e-10
Minuit parameter uncertainties:
  1  4.22081e-06
  2  4.74725e-06
  3  3.05959e-06
  4  4.36771e-06
  5  4.87939
  6  4.71586e-05
  7  20.3093
  8  1.14524e-06
  9  1.15154e-07
  10  6.19367
  11  1.44198e-05
  12  0.423323
  13  7.68628e-05
  14  2.09864e-05
  15  0.000146561
  16  4.59283e-06
  17  16.401
  18  1.45496
  19  7.89942e-05
  20  2.97655e-05
  21  5.05862
  22  3.03703
  23  0.298215
  24  0.13416
Done.

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

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  7.686e-05  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:  7.359e-01  1.342e-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.504e+00  2.982e-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.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395255/likelihoodResults_300240001_300499201_4FGL_J1211.6-2735_daily_bin235.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) = 6246.68897646
delta logL = -0.000259987697063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6246.68871865
delta logL = -2.16919579543e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11957E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9210       1.0000          .0000       10.000    
     3 'Normalizat'    1.5035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73588       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=   6246.689     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      276 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10462E-03    8.9924        .18142E-01** at limit **
   2  Index         2.8164        6.0921        .50000        .21643E-04
   3  Normalizat    1.5035        .50660E-02    .30612E-03    .30081E-05
   4  Prefactor     .73588        .23046E-02    .18991E-03   -.20414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104619
  Index      = 2.81641
  Normalizat = 1.50353
  Prefactor  = 0.735878
 **********
 **   18 **HESSE 
 **********

 FCN=   6246.689     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10462E-03    71.183        .28833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8164        8.3928        .50000       -.45195    
   3  Normalizat    1.5035        .14271E-01    .12245E-04   -.77679    
   4  Prefactor     .73588        .64923E-02    .75963E-05   -1.0214    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.7138e-09
Minuit parameter uncertainties:
  1  0.036308
  2  271.712
  3  0.0142715
  4  0.00649229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395255': 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) = 6246.68871747
delta logL = -9.89693035081e-07

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  1.046e-04  3.631e-02  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.816e+00  2.717e+02  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:  7.359e-01  6.492e-03  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.504e+00  1.427e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/395255/cmap_HighResolution_300240001_300499201_4FGL_J1211.6-2735_daily_bin235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.79e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-05 03:31:02.690205', job_id='395255', GAL2='0.74', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1630837862.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='-9.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='235' AND source_name='4FGL J1211.6-2735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:31:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 395255: <4FGL_J1211.6-2735_daily_bin235> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1211.6-2735_daily_bin235 182.901 -27.5877 300240001 300499201 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 :                                   731.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            939 sec.

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

