/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 0 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_bin763
RA = 182.901, Dec = -27.5877
tmin = 437097601, tmax = 437356801
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='398867', job_status='RUN', time_executed='2021-09-05 03:25:45.117452', time_epoch_executed='1630837545.12' WHERE source_name='4FGL J1211.6-2735' and cadence='daily' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/398867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/398867/ft1_4FGL_J1211.6-2735_daily_bin763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/398867/ft2_4FGL_J1211.6-2735_daily_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/398867/ft1_4FGL_J1211.6-2735_daily_bin763.fits outfile=/scratch/kocevski/398867/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin763.fits ra=182.901 dec=-27.5877 rad=12.0 tmin=437097601.0 tmax=437356801.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 5.13
user 4.82
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/398867/ft1_filtered_4FGL_J1211.6-2735_daily_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/398867/ft2_4FGL_J1211.6-2735_daily_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/398867/ltcube_437097601_437356801_4FGL_J1211.6-2735_daily_bin763.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/398867/ft2_4FGL_J1211.6-2735_daily_bin763.fits
.....................!
real 14.13
user 13.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/398867/ft1_filtered_4FGL_J1211.6-2735_daily_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/398867/ft2_4FGL_J1211.6-2735_daily_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/398867/ltcube_437097601_437356801_4FGL_J1211.6-2735_daily_bin763.fits outfile=/scratch/kocevski/398867/expmap_437097601_437356801_4FGL_J1211.6-2735_daily_bin763.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/398867/ltcube_437097601_437356801_4FGL_J1211.6-2735_daily_bin763.fits
.....................!
real 194.65
user 187.51
sys 6.38

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/398867/ft1_filtered_4FGL_J1211.6-2735_daily_bin763.fits scfile=/scratch/kocevski/398867/ft2_4FGL_J1211.6-2735_daily_bin763.fits outfile=/scratch/kocevski/398867/cmap_437097601_437356801_4FGL_J1211.6-2735_daily_bin763.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/398867/ft1_filtered_4FGL_J1211.6-2735_daily_bin763.fits scfile=/scratch/kocevski/398867/ft2_4FGL_J1211.6-2735_daily_bin763.fits outfile=/scratch/kocevski/398867/cmap_HighResolution_437097601_437356801_4FGL_J1211.6-2735_daily_bin763.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/398867/ft1_filtered_4FGL_J1211.6-2735_daily_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/398867/ft2_4FGL_J1211.6-2735_daily_bin763.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/398867/Model_4FGL_J1211.6-2735_daily_bin763.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/398867/ft1_filtered_4FGL_J1211.6-2735_daily_bin763.fits.....................!
real 121.67
user 119.30
sys 1.77

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .34907E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19397E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.787       1.0000         .10000E-03   10000.    
     7 'norm      '    23.472       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .64370E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .41123E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1091       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0717       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    61.532       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17578E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1340       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10449E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13452E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.737       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0965       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0670       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=   7224.379     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3323 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.492       -.15272E-06** at limit **
   2  Prefactor     .10000E-03    3.7012       -.32921E-07** at limit **
   3  Prefactor     .10492E-03    8.2072       -.13598E-05** at limit **
   4  norm          .10000E-03    2.9834       -.10137E-07** at limit **
   5  Prefactor     .10000E-03    4.2559       -.12841E-05** at limit **
   6  Prefactor     17.783        25.589       -.12115E-05   -.48817E-04
   7  norm          23.467        22.742        .14405E-06    .25470E-04
   8  Prefactor     .10093E-03    39.841        .22015E-04** at limit **
   9  norm          .10002E-03    7.5582       -.93453E-05** at limit **
  10  Prefactor     3.1086        4.5840        .50372E-05    .19034E-02
  11  Prefactor     .10000E-03    25.134        .28193E-05** at limit **
  12  Prefactor     2.0824        35.438       -.45391E-06    .24258E-04
  13  Prefactor     .10000E-03    23.401       -.19765E-05** at limit **
  14  Prefactor     .10000E-03    9.3984        .83562E-06** at limit **
  15  Prefactor     61.504        46.876       -.43217E-05   -.54734E-04
  16  Prefactor     .10000E-03    10.484       -.18618E-07** at limit **
  17  Prefactor     .10021E-03    14.623       -.67653E-05** at limit **
  18  norm          1.1343        .97275        .57151E-07    .27144E-03
  19  Prefactor     .10000E-03    24.508       -.19124E-06** at limit **
  20  norm          .10003E-03    6.0236        .57948E-05** at limit **
  21  Prefactor     .10005E-03    4.8284       -.46967E-05** at limit **
  22  norm          17.738        7.2739       -.59976E-07    .89255E-04
  23  Normalizat    1.0966        .26120       -.16366E-05    .11766E-04
  24  Prefactor     1.0668        .11572        .41546E-06    .21266E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000104917
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 17.7828
  norm       = 23.4669
  Prefactor  = 0.000100934
  norm       = 0.00010002
  Prefactor  = 3.1086
  Prefactor  = 0.0001
  Prefactor  = 2.08237
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 61.5041
  Prefactor  = 0.0001
  Prefactor  = 0.00010021
  norm       = 1.13426
  Prefactor  = 0.0001
  norm       = 0.00010003
  Prefactor  = 0.000100051
  norm       = 17.7384
  Normalizat = 1.09659
  Prefactor  = 1.06684
 **********
 **   18 **HESSE 
 **********

 FCN=   7224.379     FROM HESSE     STATUS=OK           425 CALLS     3748 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7040        .15970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10492E-03    15.596        .81201E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.9891        .14337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.023        .33211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.783        25.430        .94966E-04   -1.4864    
   7  norm          23.467        22.740        .82679E-04   -1.4739    
   8  Prefactor     .10093E-03    151.46        .53688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10002E-03    27.168        .24938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.1086        5.5411        .11498E-02   -1.5355    
  11  Prefactor     .10000E-03    25.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0824        35.203        .28700E-03   -1.5419    
  13  Prefactor     .10000E-03    23.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.4290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     61.504        47.018        .25576E-03   -1.4138    
  16  Prefactor     .10000E-03    10.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10021E-03    124.94        .55713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1343        .94761        .73744E-04   -1.5495    
  19  Prefactor     .10000E-03    24.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10003E-03    41.869        .31672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10005E-03    3.3138        .52999E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.738        7.2653        .95099E-04   -1.4865    
  23  Normalizat    1.0966        .29488        .37825E-03   -.89861    
  24  Prefactor     1.0668        .13619        .17700E-03   -.90534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30504e-08
Minuit parameter uncertainties:
  1  3.75889e-06
  2  4.92101e-06
  3  0.0175184
  4  1.47359e-06
  5  0.000380245
  6  25.4458
  7  22.7479
  8  0.0238493
  9  0.00146241
  10  5.54204
  11  9.44981e-05
  12  17.1351
  13  0.000165616
  14  0.00019083
  15  47.046
  16  7.44862e-06
  17  0.0102667
  18  0.947618
  19  4.25076e-06
  20  0.0022366
  21  0.000820257
  22  7.26563
  23  0.295327
  24  0.136229
Done.

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

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  1.656e-04  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.067e+00  1.362e-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.097e+00  2.953e-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.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/398867/likelihoodResults_437097601_437356801_4FGL_J1211.6-2735_daily_bin763.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) = 7224.37880763
delta logL = -0.00020348912949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7224.37860417
delta logL = -2.55940904026e-08

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 'Index     '    2.4845       1.0000          .0000       10.000    
     3 'Normalizat'    1.0966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0668       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=   7224.379     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      233 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6649.3        .90712E-02** at limit **
   2  Index         2.4866        5.3844        .50000       -.86020E-06
   3  Normalizat    1.0966        .10722        .85423E-01    .18255E-04
   4  Prefactor     1.0668        .49736E-01    .39010E-01   -.43778E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.48663
  Normalizat = 1.09659
  Prefactor  = 1.06684
 **********
 **   18 **HESSE 
 **********

 FCN=   7224.379     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4866        6.1687        .50000       -.52669    
   3  Normalizat    1.0966        .28868        .37826E-03   -.89861    
   4  Prefactor     1.0668        .13462        .17700E-03   -.90534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46433e-12
Minuit parameter uncertainties:
  1  6.82929e-06
  2  5.57178
  3  0.289092
  4  0.134658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/398867': 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) = 7224.37860416
delta logL = -1.50675987243e-08

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  6.829e-06  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.487e+00  5.572e+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.067e+00  1.347e-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.097e+00  2.891e-01  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/398867/cmap_HighResolution_437097601_437356801_4FGL_J1211.6-2735_daily_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-05 03:40:47.447349', job_id='398867', GAL2='1.07', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630838447.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='-1.51e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='763' AND source_name='4FGL J1211.6-2735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:40:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 398867: <4FGL_J1211.6-2735_daily_bin763> in cluster <slac> Done

Job <4FGL_J1211.6-2735_daily_bin763> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 03:25:35 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:25:36 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:25:36 2021
Terminated at Sun Sep  5 03:40:48 2021
Results reported at Sun Sep  5 03:40:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1211.6-2735_daily_bin763 182.901 -27.5877 437097601 437356801 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 :                                   896.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             344.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

