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


Performing analysis on: 4FGL_J1211.6-2735_daily_bin635
RA = 182.901, Dec = -27.5877
tmin = 403920001, tmax = 404179201
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='397287', job_status='RUN', time_executed='2021-09-05 03:21:45.379732', time_epoch_executed='1630837305.38' WHERE source_name='4FGL J1211.6-2735' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397287

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397287/ft1_4FGL_J1211.6-2735_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397287/ft2_4FGL_J1211.6-2735_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397287/ft1_4FGL_J1211.6-2735_daily_bin635.fits outfile=/scratch/kocevski/397287/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin635.fits ra=182.901 dec=-27.5877 rad=12.0 tmin=403920001.0 tmax=404179201.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 9.97
user 9.64
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397287/ft1_filtered_4FGL_J1211.6-2735_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/397287/ft2_4FGL_J1211.6-2735_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/397287/ltcube_403920001_404179201_4FGL_J1211.6-2735_daily_bin635.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/397287/ft2_4FGL_J1211.6-2735_daily_bin635.fits
.....................!
real 9.23
user 8.91
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397287/ft1_filtered_4FGL_J1211.6-2735_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/397287/ft2_4FGL_J1211.6-2735_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/397287/ltcube_403920001_404179201_4FGL_J1211.6-2735_daily_bin635.fits outfile=/scratch/kocevski/397287/expmap_403920001_404179201_4FGL_J1211.6-2735_daily_bin635.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/397287/ltcube_403920001_404179201_4FGL_J1211.6-2735_daily_bin635.fits
.....................!
real 190.19
user 185.32
sys 4.56

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/397287/ft1_filtered_4FGL_J1211.6-2735_daily_bin635.fits scfile=/scratch/kocevski/397287/ft2_4FGL_J1211.6-2735_daily_bin635.fits outfile=/scratch/kocevski/397287/cmap_403920001_404179201_4FGL_J1211.6-2735_daily_bin635.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397287/ft1_filtered_4FGL_J1211.6-2735_daily_bin635.fits scfile=/scratch/kocevski/397287/ft2_4FGL_J1211.6-2735_daily_bin635.fits outfile=/scratch/kocevski/397287/cmap_HighResolution_403920001_404179201_4FGL_J1211.6-2735_daily_bin635.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397287/ft1_filtered_4FGL_J1211.6-2735_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/397287/ft2_4FGL_J1211.6-2735_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397287/Model_4FGL_J1211.6-2735_daily_bin635.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/397287/ft1_filtered_4FGL_J1211.6-2735_daily_bin635.fits.........................!
real 28.68
user 27.50
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    131.72       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.000       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.449       1.0000         .10000E-03   10000.    
     4 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .75596       1.0000         .10000E-03   10000.    
     9 'norm      '    .10425E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12826E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.105       1.0000         .10000E-03   10000.    
    13 'Prefactor '    83.994       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    152.68       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.669       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2810       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13070E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    19.082       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11635E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .55864       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1352       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=   1006.339     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2646 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     131.75        164.74       -.51989E-06    .17711E-05
   2  Prefactor     24.020        50.235       -.12155E-05    .57342E-06
   3  Prefactor     23.469        49.614       -.15473E-05   -.21136E-05
   4  norm          .10000E-03    21.460       -.19637E-08** at limit **
   5  Prefactor     .10000E-03    18.076        .10285E-05** at limit **
   6  Prefactor     .10000E-03    61.377        .49088E-06** at limit **
   7  norm          .10000E-03    30.297        .18691E-07** at limit **
   8  Prefactor     .87351        57.148       -.49152E-06   -.24830E-04
   9  norm          .10000E-03    23.107       -.14038E-05** at limit **
  10  Prefactor     .10000E-03    15.204        .45377E-05** at limit **
  11  Prefactor     .10000E-03    57.795        .22518E-07** at limit **
  12  Prefactor     35.106        33.966       -.26348E-06   -.47817E-05
  13  Prefactor     84.169        117.08       -.20433E-05    .46349E-05
  14  Prefactor     .10000E-03    27.725        .18959E-06** at limit **
  15  Prefactor     .10000E-03    47.606       -.74866E-08** at limit **
  16  Prefactor     152.67        91.513       -.79006E-06   -.11827E-04
  17  Prefactor     40.692        68.031       -.39592E-05    .45783E-05
  18  norm          2.2811        2.1758       -.34765E-07    .30828E-04
  19  Prefactor     .10001E-03    1409.2       -.23737E-05** at limit **
  20  norm          19.032        28.616       -.83629E-05    .81803E-05
  21  Prefactor     .10000E-03    27.209       -.28670E-06** at limit **
  22  norm          .10000E-03    66.611       -.23149E-05** at limit **
  23  Normalizat    .55773        .70144        .13271E-04    .31037E-05
  24  Prefactor     1.1354        .32220       -.23517E-05    .17671E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 131.749
  Prefactor  = 24.0204
  Prefactor  = 23.469
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.873506
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.1058
  Prefactor  = 84.1686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 152.671
  Prefactor  = 40.692
  norm       = 2.28115
  Prefactor  = 0.000100008
  norm       = 19.0318
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 0.557732
  Prefactor  = 1.13537
 **********
 **   18 **HESSE 
 **********

 FCN=   1006.339     FROM HESSE     STATUS=OK           395 CALLS     3041 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     131.75        164.74        .17542E-03   -1.3407    
   2  Prefactor     24.020        50.169        .81765E-04   -1.4727    
   3  Prefactor     23.469        49.649        .82719E-04   -1.4739    
   4  norm          .10000E-03    21.516        .14356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.141        .13158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    61.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    30.297        .17065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .87351        202.89        .44476E-02   -1.5521    
   9  norm          .10000E-03    23.295        .14831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.162        .12046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    57.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     35.106        33.969        .67637E-04   -1.4522    
  13  Prefactor     84.169        116.86        .21915E-03   -1.3871    
  14  Prefactor     .10000E-03    27.725        .16324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    47.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     152.67        91.417        .16311E-03   -1.3230    
  17  Prefactor     40.692        67.911        .62856E-04   -1.4431    
  18  norm          2.2811        2.1850        .44364E-04   -1.5406    
  19  Prefactor     .10001E-03    1403.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          19.032        28.606        .91689E-04   -1.4835    
  21  Prefactor     .10000E-03    27.239        .16133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    69.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .55773        .72926        .47043E-03   -1.0981    
  24  Prefactor     1.1354        .34201        .16925E-03   -.88344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65587e-11
Minuit parameter uncertainties:
  1  165.323
  2  50.2568
  3  49.7364
  4  2.92543e-05
  5  5.024e-05
  6  8.7691e-06
  7  1.29681e-05
  8  26.716
  9  5.17215e-05
  10  3.36977e-05
  11  1.26759e-05
  12  33.9878
  13  117.179
  14  1.80129e-05
  15  0.000120502
  16  91.5018
  17  68.0402
  18  2.18503
  19  0.0070144
  20  28.6263
  21  0.000404413
  22  3.28378e-05
  23  0.742379
  24  0.34268
Done.

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

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  8.417e+01  1.172e+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:  1.135e+00  3.427e-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:  5.577e-01  7.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/397287/likelihoodResults_403920001_404179201_4FGL_J1211.6-2735_daily_bin635.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) = 1006.33366674
delta logL = 0.00500304203081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1005.77423436
delta logL = 0.56443542847

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11551E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.7050       1.0000          .0000       10.000    
     3 'Normalizat'    .36514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2207       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=   1005.774     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      390 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11190E-02    .36901E-01    .27274E-03** at limit **
   2  Index         8.7207        8.4877        .91651E-01    .48586E-04
   3  Normalizat    .36488        .23553        .12917        .73680E-05
   4  Prefactor     1.2206        .11911        .34158E-01   -.17822E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00111902
  Index      = 8.72069
  Normalizat = 0.364879
  Prefactor  = 1.22065
 **********
 **   18 **HESSE 
 **********

 FCN=   1005.774     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      421 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11190E-02    .54526E-01    .99760E-06   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.7207        9.0800        .40184E-03    .83924    
   3  Normalizat    .36488        .66384        .57195E-03   -1.1916    
   4  Prefactor     1.2206        .33764        .16385E-03   -.85698    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.53001e-11
Minuit parameter uncertainties:
  1  0.0149082
  2  6.45281
  3  0.678994
  4  0.338243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397287': 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) = 1005.77422981
delta logL = 0.564439974209

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  1.119e-03  1.491e-02  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  8.721e+00  6.453e+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.221e+00  3.382e-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:  3.649e-01  6.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 182.901 -27.588
Photon Index (Free Index): 8.72 +/- 6.45
Photon Flux (Free Index): 2.38e-07 +/- 2.20e-07
Energy Flux (Free Index): 2.72e-05 +/- 2.60e-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/397287/cmap_HighResolution_403920001_404179201_4FGL_J1211.6-2735_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-02', comment='SUCCESS', energy_flux2='2.72e-05', dlogl='5.64e-01', photon_flux2='2.38e-07', job_status='DONE', time_completed='2021-09-05 03:28:49.259677', photon_index_error2='6.45', photon_index2='8.72', ts='0.73', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='6.02e-07', energy_flux_error2='2.60e-05', EG='0.56', time_epoch_completed='1630837729.26', return_code='0', job_id='397287', GAL2='1.22', EG2='0.36', return_code2='102', photon_flux_error2='2.20e-07', ts2='2.02', photon_index='2.57' WHERE bin_id='635' AND source_name='4FGL J1211.6-2735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:28:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 397287: <4FGL_J1211.6-2735_daily_bin635> in cluster <slac> Done

Job <4FGL_J1211.6-2735_daily_bin635> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 03:20:41 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:20:43 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:20:43 2021
Terminated at Sun Sep  5 03:28:50 2021
Results reported at Sun Sep  5 03:28:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1211.6-2735_daily_bin635 182.901 -27.5877 403920001 404179201 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 :                                   420.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             254.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   486 sec.
    Turnaround time :                            489 sec.

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

