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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1258
RA = 207.387, Dec = -11.5188
tmin = 565401601, tmax = 565660801
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='998957', job_status='RUN', time_executed='2021-09-08 14:32:49.517970', time_epoch_executed='1631136769.52' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998957

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998957/ft1_4FGL_J1349.5-1131_daily_bin1258.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998957/ft2_4FGL_J1349.5-1131_daily_bin1258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998957/ft1_4FGL_J1349.5-1131_daily_bin1258.fits outfile=/scratch/kocevski/998957/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1258.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=565401601.0 tmax=565660801.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.83
user 3.41
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/998957/ft2_4FGL_J1349.5-1131_daily_bin1258.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998957/ft2_4FGL_J1349.5-1131_daily_bin1258.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/998957/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1258.fits evtable="EVENTS" outfile="/scratch/kocevski/998957/ft1_filtered_4FGL_J1349.5-1131_daily_bin1258.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998957/ft1_filtered_4FGL_J1349.5-1131_daily_bin1258.fits" evtable="EVENTS" scfile=/scratch/kocevski/998957/ft2_4FGL_J1349.5-1131_daily_bin1258.fits sctable="SC_DATA" outfile=/scratch/kocevski/998957/ltcube_565401601_565660801_4FGL_J1349.5-1131_daily_bin1258.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/998957/ft2_4FGL_J1349.5-1131_daily_bin1258.fits
.....................!
real 16.66
user 16.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998957/ft1_filtered_4FGL_J1349.5-1131_daily_bin1258.fits evtable="EVENTS" scfile=/scratch/kocevski/998957/ft2_4FGL_J1349.5-1131_daily_bin1258.fits sctable="SC_DATA" expcube=/scratch/kocevski/998957/ltcube_565401601_565660801_4FGL_J1349.5-1131_daily_bin1258.fits outfile=/scratch/kocevski/998957/expmap_565401601_565660801_4FGL_J1349.5-1131_daily_bin1258.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/998957/ltcube_565401601_565660801_4FGL_J1349.5-1131_daily_bin1258.fits
.....................!
real 192.57
user 187.02
sys 4.73

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
Added 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1349.5-1131 @ 207.387 -11.5188

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/998957/ft1_filtered_4FGL_J1349.5-1131_daily_bin1258.fits scfile=/scratch/kocevski/998957/ft2_4FGL_J1349.5-1131_daily_bin1258.fits outfile=/scratch/kocevski/998957/cmap_565401601_565660801_4FGL_J1349.5-1131_daily_bin1258.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=207.387 yref=-11.5188 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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998957/ft1_filtered_4FGL_J1349.5-1131_daily_bin1258.fits scfile=/scratch/kocevski/998957/ft2_4FGL_J1349.5-1131_daily_bin1258.fits outfile=/scratch/kocevski/998957/cmap_HighResolution_565401601_565660801_4FGL_J1349.5-1131_daily_bin1258.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=207.387 yref=-11.5188 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998957/ft1_filtered_4FGL_J1349.5-1131_daily_bin1258.fits evtable="EVENTS" scfile=/scratch/kocevski/998957/ft2_4FGL_J1349.5-1131_daily_bin1258.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998957/Model_4FGL_J1349.5-1131_daily_bin1258.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/998957/ft1_filtered_4FGL_J1349.5-1131_daily_bin1258.fits.....................!
real 58.06
user 56.68
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/998957/ft1_filtered_4FGL_J1349.5-1131_daily_bin1258.fits', '/scratch/kocevski/998957/ft2_4FGL_J1349.5-1131_daily_bin1258.fits', expMap='/scratch/kocevski/998957/expmap_565401601_565660801_4FGL_J1349.5-1131_daily_bin1258.fits', expCube='/scratch/kocevski/998957/ltcube_565401601_565660801_4FGL_J1349.5-1131_daily_bin1258.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/998957/Model_4FGL_J1349.5-1131_daily_bin1258.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1349.5-1131'

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.801e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.494e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.359e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/998957/ft1_filtered_4FGL_J1349.5-1131_daily_bin1258.fits
Spacecraft file(s): /scratch/kocevski/998957/ft2_4FGL_J1349.5-1131_daily_bin1258.fits
Exposure map: /scratch/kocevski/998957/expmap_565401601_565660801_4FGL_J1349.5-1131_daily_bin1258.fits
Exposure cube: /scratch/kocevski/998957/ltcube_565401601_565660801_4FGL_J1349.5-1131_daily_bin1258.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/998957/Model_4FGL_J1349.5-1131_daily_bin1258.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) = 7135.10511175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0748       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5803       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7038       1.0000         .10000E-03   10000.    
     6 'norm      '    .17711E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.386       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.846       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4216       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1764       1.0000         .10000E-03   10000.    
    16 'norm      '    8.4638       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.102       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.131       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.640       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4808       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97639       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7135.099     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2358 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.1185       -.20357E-06** at limit **
   2  norm          .10000E-03    4.9386        .15783E-06** at limit **
   3  Prefactor     7.0754        11.997       -.13646E-05   -.61732E-04
   4  Prefactor     3.5788        8.3558       -.17495E-06   -.46238E-04
   5  Prefactor     2.6979        11.971        .15571E-04    .82979E-04
   6  norm          .10000E-03    .75484       -.35248E-07** at limit **
   7  norm          .10000E-03    1.9589       -.39778E-06** at limit **
   8  norm          19.389        8.7678       -.20934E-05   -.16376E-03
   9  Prefactor     .10000E-03    15.226       -.45394E-06** at limit **
  10  norm          14.846        31.320       -.27032E-06   -.21535E-06
  11  Prefactor     .10000E-03    7.4136        .69985E-07** at limit **
  12  norm          .10000E-03    1.5697        .38542E-07** at limit **
  13  Prefactor     2.4214        1.9548        .25059E-06   -.20952E-02
  14  Prefactor     .10000E-03    137.81       -.34293E-05** at limit **
  15  norm          1.1765        9.6907       -.70133E-06   -.10224E-03
  16  norm          8.4645        4.0034       -.65791E-06   -.47593E-04
  17  norm          .10000E-03    3.7957        .13371E-07** at limit **
  18  norm          10.103        9.3752        .69451E-07   -.16367E-05
  19  Prefactor     19.136        26.687        .20622E-06   -.23764E-04
  20  Prefactor     24.644        27.143        .21498E-06    .64408E-06
  21  Normalizat    1.4807        .24916        .66201E-06   -.33855E-04
  22  Prefactor     .97634        .12616       -.22835E-06    .30952E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.07542
  Prefactor  = 3.57878
  Prefactor  = 2.69786
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 19.3887
  Prefactor  = 0.0001
  norm       = 14.8459
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.42139
  Prefactor  = 0.0001
  norm       = 1.17647
  norm       = 8.46448
  norm       = 0.0001
  norm       = 10.1034
  Prefactor  = 19.136
  Prefactor  = 24.644
  Normalizat = 1.48072
  Prefactor  = 0.97634
 **********
 **   18 **HESSE 
 **********

 FCN=   7135.099     FROM HESSE     STATUS=OK           346 CALLS     2704 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.1373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.9481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0754        11.977        .15082E-03   -1.5176    
   4  Prefactor     3.5788        8.3302        .21357E-03   -1.5330    
   5  Prefactor     2.6979        12.017        .24773E-03   -1.5379    
   6  norm          .10000E-03    2.7924        .13924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9868        .11551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.389        8.7945        .90967E-04   -1.4827    
   9  Prefactor     .10000E-03    15.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.846        31.324        .10395E-03   -1.4937    
  11  Prefactor     .10000E-03    7.4635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5745        .10334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4214        6.0215        .13151E-02   -1.5397    
  14  Prefactor     .10000E-03    139.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1765        9.9339        .42215E-03   -1.5491    
  16  norm          8.4645        4.0085        .10773E-03   -1.5126    
  17  norm          .10000E-03    3.7964        .16073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.103        9.3611        .12607E-03   -1.5072    
  19  Prefactor     19.136        26.684        .45786E-03   -1.4833    
  20  Prefactor     24.644        27.163        .80698E-04   -1.4715    
  21  Normalizat    1.4807        .28813        .33064E-03   -.78322    
  22  Prefactor     .97634        .14697        .20925E-03   -.93522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37718e-09
Minuit parameter uncertainties:
  1  1.47482e-06
  2  3.44156e-07
  3  11.9807
  4  8.33287
  5  11.3914
  6  1.585e-06
  7  6.43204e-05
  8  8.79507
  9  1.60965e-05
  10  31.3588
  11  5.29331e-06
  12  6.74939e-07
  13  6.02303
  14  3.48622e-05
  15  6.83846
  16  4.00866
  17  2.46375e-07
  18  9.36246
  19  26.701
  20  27.1764
  21  0.28845
  22  0.147034
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.421e+00  6.023e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.494e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.359e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.763e-01  1.470e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.481e+00  2.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 207.387 -11.519
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998957/likelihoodResults_565401601_565660801_4FGL_J1349.5-1131_daily_bin1258.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): 0
logL (Free Index) = 7134.9693991
delta logL = 0.129889334876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7134.93795047
delta logL = 0.161337968281

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3877       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4676       1.0000          .0000       10.000    
     3 'Normalizat'    1.4420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98877       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7134.938     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      215 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3828        38.868        .92268E-02    .60632E-03
   2  Index         3.4688        3.6275        .21221        .38069E-04
   3  Normalizat    1.4420        .52408E-01    .75524E-01   -.14628E-03
   4  Prefactor     .98877        .27693E-01    .46127E-01   -.57852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.38275
  Index      = 3.46876
  Normalizat = 1.44201
  Prefactor  = 0.988769
 **********
 **   18 **HESSE 
 **********

 FCN=   7134.938     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3828        49.980        .13446E-03   -1.5473    
   2  Index         3.4688        6.5640        .93360E-02   -.31125    
   3  Normalizat    1.4420        .30305        .33422E-03   -.79421    
   4  Prefactor     .98877        .15921        .20807E-03   -.93105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58254e-10
Minuit parameter uncertainties:
  1  16.641
  2  7.76249
  3  0.303425
  4  0.159281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998957': 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) = 7134.93794944
delta logL = 0.16133899986

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.383e+00  1.664e+01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.469e+00  7.762e+00  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  7.359e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.888e-01  1.593e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.442e+00  3.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
Ra Dec: 207.387 -11.519

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/998957/cmap_HighResolution_565401601_565660801_4FGL_J1349.5-1131_daily_bin1258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-08 14:43:48.258299', job_id='998957', GAL2='0.99', fit_tolerance='1e-08', EG2='1.44', EG='1.48', time_epoch_completed='1631137428.26', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.61e-01', ts2='0.56', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1258' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:43:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 998957: <4FGL_J1349.5-1131_daily_bin1258> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1258> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 14:30:25 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:30:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 14:30:38 2021
Terminated at Wed Sep  8 14:43:49 2021
Results reported at Wed Sep  8 14:43:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1258 207.387 -11.5188 565401601 565660801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1349.5-1131 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   646.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            804 sec.

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

