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


Performing analysis on: 4FGL_J1211.6-2735_daily_bin1492
RA = 182.901, Dec = -27.5877
tmin = 626054401, tmax = 626313601
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='402094', job_status='RUN', time_executed='2021-09-05 03:36:10.971516', time_epoch_executed='1630838170.97' WHERE source_name='4FGL J1211.6-2735' and cadence='daily' and bin_id='1492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/402094

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/402094/ft1_4FGL_J1211.6-2735_daily_bin1492.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/402094/ft2_4FGL_J1211.6-2735_daily_bin1492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/402094/ft1_4FGL_J1211.6-2735_daily_bin1492.fits outfile=/scratch/kocevski/402094/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin1492.fits ra=182.901 dec=-27.5877 rad=12.0 tmin=626054401.0 tmax=626313601.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 4.07
user 3.84
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/402094/ft1_filtered_4FGL_J1211.6-2735_daily_bin1492.fits" evtable="EVENTS" scfile=/scratch/kocevski/402094/ft2_4FGL_J1211.6-2735_daily_bin1492.fits sctable="SC_DATA" outfile=/scratch/kocevski/402094/ltcube_626054401_626313601_4FGL_J1211.6-2735_daily_bin1492.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/402094/ft2_4FGL_J1211.6-2735_daily_bin1492.fits
.....................!
real 12.22
user 11.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/402094/ft1_filtered_4FGL_J1211.6-2735_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/402094/ft2_4FGL_J1211.6-2735_daily_bin1492.fits sctable="SC_DATA" expcube=/scratch/kocevski/402094/ltcube_626054401_626313601_4FGL_J1211.6-2735_daily_bin1492.fits outfile=/scratch/kocevski/402094/expmap_626054401_626313601_4FGL_J1211.6-2735_daily_bin1492.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/402094/ltcube_626054401_626313601_4FGL_J1211.6-2735_daily_bin1492.fits
.....................!
real 190.14
user 185.11
sys 4.69

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/402094/ft1_filtered_4FGL_J1211.6-2735_daily_bin1492.fits scfile=/scratch/kocevski/402094/ft2_4FGL_J1211.6-2735_daily_bin1492.fits outfile=/scratch/kocevski/402094/cmap_626054401_626313601_4FGL_J1211.6-2735_daily_bin1492.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/402094/ft1_filtered_4FGL_J1211.6-2735_daily_bin1492.fits scfile=/scratch/kocevski/402094/ft2_4FGL_J1211.6-2735_daily_bin1492.fits outfile=/scratch/kocevski/402094/cmap_HighResolution_626054401_626313601_4FGL_J1211.6-2735_daily_bin1492.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/402094/ft1_filtered_4FGL_J1211.6-2735_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/402094/ft2_4FGL_J1211.6-2735_daily_bin1492.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/402094/Model_4FGL_J1211.6-2735_daily_bin1492.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/402094/ft1_filtered_4FGL_J1211.6-2735_daily_bin1492.fits.....................!
real 120.74
user 119.41
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2520       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    30.637       1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.138       1.0000         .10000E-03   10000.    
     9 'norm      '    .20391E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.988       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10934E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.7849       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    16.845       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.8909       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67268       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=   7049.023     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2821 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.294        .21799E-06** at limit **
   2  Prefactor     .10000E-03    24.956        .61999E-05** at limit **
   3  Prefactor     .10000E-03    3.7922        .54854E-08** at limit **
   4  norm          .10000E-03    5.7983       -.89706E-07** at limit **
   5  Prefactor     4.2528        4.8762       -.17968E-05   -.16739E-03
   6  Prefactor     .10000E-03    39.762       -.10639E-04** at limit **
   7  norm          30.639        30.094        .86148E-07    .38889E-06
   8  Prefactor     43.102        22.643        .21120E-05    .26072E-03
   9  norm          .10028E-03    5.9786       -.53834E-06** at limit **
  10  Prefactor     .10000E-03    2.1087        .19993E-07** at limit **
  11  Prefactor     .10000E-03    28.834        .30679E-05** at limit **
  12  Prefactor     .10000E-03    29.428       -.17616E-05** at limit **
  13  Prefactor     .10000E-03    30.359       -.17898E-05** at limit **
  14  Prefactor     .10000E-03    9.3058       -.91505E-08** at limit **
  15  Prefactor     .10000E-03    22.411       -.43192E-05** at limit **
  16  Prefactor     42.992        30.596        .46595E-06    .91305E-05
  17  Prefactor     .10004E-03    10.272       -.37555E-06** at limit **
  18  norm          6.7850        1.7186       -.69186E-08   -.18498E-04
  19  Prefactor     .10000E-03    44.269        .74037E-06** at limit **
  20  norm          16.847        10.649        .31753E-07   -.20242E-04
  21  Prefactor     .10000E-03    5.6886        .14044E-06** at limit **
  22  norm          .10000E-03    5.3843       -.22584E-07** at limit **
  23  Normalizat    1.8908        .27145       -.22844E-06    .10251E-03
  24  Prefactor     .67271        .11724        .37778E-07    .97305E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.25279
  Prefactor  = 0.0001
  norm       = 30.6393
  Prefactor  = 43.1021
  norm       = 0.000100284
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.9921
  Prefactor  = 0.000100042
  norm       = 6.78502
  Prefactor  = 0.0001
  norm       = 16.8473
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.89078
  Prefactor  = 0.672707
 **********
 **   18 **HESSE 
 **********

 FCN=   7049.023     FROM HESSE     STATUS=OK           399 CALLS     3220 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7951        .15968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.8372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2528        4.9025        .19257E-03   -1.5295    
   6  Prefactor     .10000E-03    38.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          30.639        30.105        .72387E-04   -1.4600    
   8  Prefactor     43.102        20.558        .61038E-04   -1.4394    
   9  norm          .10028E-03    46.259        .34356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1198        .11904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.698        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.3105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     42.992        30.618        .61144E-04   -1.4396    
  17  Prefactor     .10004E-03    11.043        .85398E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.7850        1.7189        .52696E-04   -1.5187    
  19  Prefactor     .10000E-03    44.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          16.847        10.616        .97585E-04   -1.4887    
  21  Prefactor     .10000E-03    5.7322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.4649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.8908        .32774        .31636E-03   -.67317    
  24  Prefactor     .67271        .14082        .21752E-03   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1367e-09
Minuit parameter uncertainties:
  1  1.08063e-06
  2  4.65067e-05
  3  3.63877e-07
  4  1.3618e-06
  5  4.90294
  6  0.00016335
  7  30.1197
  8  20.5612
  9  0.00726098
  10  5.42067e-07
  11  3.00581e-05
  12  5.24507e-05
  13  3.51791e-06
  14  5.74823e-06
  15  1.0922e-05
  16  30.6288
  17  0.00137009
  18  1.71888
  19  1.101e-07
  20  10.6171
  21  8.58779e-07
  22  9.3049e-07
  23  0.328126
  24  0.140897
Done.

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

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  3.518e-06  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:  6.727e-01  1.409e-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.891e+00  3.281e-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: 9.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/402094/likelihoodResults_626054401_626313601_4FGL_J1211.6-2735_daily_bin1492.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) = 7049.02352863
delta logL = -0.00015540269851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7049.0233733
delta logL = -7.34626155463e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8938       1.0000          .0000       10.000    
     3 'Normalizat'    1.8908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67271       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=   7049.023     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.002        .90712E-02** at limit **
   2  Index         2.8781        8.5250        .50000        .46314E-05
   3  Normalizat    1.8908        .69601E-02    .71517E-01    .28099E-04
   4  Prefactor     .67271        .30696E-02    .42037E-01    .47699E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.87814
  Normalizat = 1.89078
  Prefactor  = 0.672707
 **********
 **   18 **HESSE 
 **********

 FCN=   7049.023     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    172.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8781        6.8939        .50000       -.43827    
   3  Normalizat    1.8908        .16329E-01    .31636E-03   -.67317    
   4  Prefactor     .67271        .72033E-02    .21752E-03   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.70409e-08
Minuit parameter uncertainties:
  1  0.000296347
  2  309.392
  3  0.0163295
  4  0.00720332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/402094': 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) = 7049.02337328
delta logL = -5.29953467776e-08

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  2.963e-04  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.878e+00  3.094e+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:  6.727e-01  7.203e-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.891e+00  1.633e-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/402094/cmap_HighResolution_626054401_626313601_4FGL_J1211.6-2735_daily_bin1492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.73e-03', job_status='DONE', photon_flux_upper_limit='9.89e-08', time_completed='2021-09-05 03:50:30.990464', job_id='402094', GAL2='0.67', fit_tolerance='1e-08', EG2='1.89', EG='1.89', time_epoch_completed='1630839030.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='-5.30e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1492' AND source_name='4FGL J1211.6-2735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:50:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 402094: <4FGL_J1211.6-2735_daily_bin1492> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1211.6-2735_daily_bin1492 182.901 -27.5877 626054401 626313601 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 :                                   829.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

