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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1245
RA = 207.387, Dec = -11.5188
tmin = 562032001, tmax = 562291201
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='998937', job_status='RUN', time_executed='2021-09-08 14:30:47.188958', time_epoch_executed='1631136647.19' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998937

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998937/ft1_4FGL_J1349.5-1131_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998937/ft2_4FGL_J1349.5-1131_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998937/ft1_4FGL_J1349.5-1131_daily_bin1245.fits outfile=/scratch/kocevski/998937/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1245.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=562032001.0 tmax=562291201.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.58
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998937/ft2_4FGL_J1349.5-1131_daily_bin1245.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/998937/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1245.fits evtable="EVENTS" outfile="/scratch/kocevski/998937/ft1_filtered_4FGL_J1349.5-1131_daily_bin1245.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/998937/ft1_filtered_4FGL_J1349.5-1131_daily_bin1245.fits" evtable="EVENTS" scfile=/scratch/kocevski/998937/ft2_4FGL_J1349.5-1131_daily_bin1245.fits sctable="SC_DATA" outfile=/scratch/kocevski/998937/ltcube_562032001_562291201_4FGL_J1349.5-1131_daily_bin1245.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/998937/ft2_4FGL_J1349.5-1131_daily_bin1245.fits
.....................!
real 13.73
user 13.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998937/ft1_filtered_4FGL_J1349.5-1131_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/998937/ft2_4FGL_J1349.5-1131_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/998937/ltcube_562032001_562291201_4FGL_J1349.5-1131_daily_bin1245.fits outfile=/scratch/kocevski/998937/expmap_562032001_562291201_4FGL_J1349.5-1131_daily_bin1245.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/998937/ltcube_562032001_562291201_4FGL_J1349.5-1131_daily_bin1245.fits
.....................!
real 193.85
user 187.64
sys 4.83

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/998937/ft1_filtered_4FGL_J1349.5-1131_daily_bin1245.fits scfile=/scratch/kocevski/998937/ft2_4FGL_J1349.5-1131_daily_bin1245.fits outfile=/scratch/kocevski/998937/cmap_562032001_562291201_4FGL_J1349.5-1131_daily_bin1245.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998937/ft1_filtered_4FGL_J1349.5-1131_daily_bin1245.fits scfile=/scratch/kocevski/998937/ft2_4FGL_J1349.5-1131_daily_bin1245.fits outfile=/scratch/kocevski/998937/cmap_HighResolution_562032001_562291201_4FGL_J1349.5-1131_daily_bin1245.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998937/ft1_filtered_4FGL_J1349.5-1131_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/998937/ft2_4FGL_J1349.5-1131_daily_bin1245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998937/Model_4FGL_J1349.5-1131_daily_bin1245.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/998937/ft1_filtered_4FGL_J1349.5-1131_daily_bin1245.fits.....................!
real 59.34
user 57.64
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/998937/ft1_filtered_4FGL_J1349.5-1131_daily_bin1245.fits', '/scratch/kocevski/998937/ft2_4FGL_J1349.5-1131_daily_bin1245.fits', expMap='/scratch/kocevski/998937/expmap_562032001_562291201_4FGL_J1349.5-1131_daily_bin1245.fits', expCube='/scratch/kocevski/998937/ltcube_562032001_562291201_4FGL_J1349.5-1131_daily_bin1245.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/998937/Model_4FGL_J1349.5-1131_daily_bin1245.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/998937/ft1_filtered_4FGL_J1349.5-1131_daily_bin1245.fits
Spacecraft file(s): /scratch/kocevski/998937/ft2_4FGL_J1349.5-1131_daily_bin1245.fits
Exposure map: /scratch/kocevski/998937/expmap_562032001_562291201_4FGL_J1349.5-1131_daily_bin1245.fits
Exposure cube: /scratch/kocevski/998937/ltcube_562032001_562291201_4FGL_J1349.5-1131_daily_bin1245.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/998937/Model_4FGL_J1349.5-1131_daily_bin1245.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) = 7214.72636352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.993       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.924       1.0000         .10000E-03   10000.    
     6 'norm      '    .15378E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.2085       1.0000         .10000E-03   10000.    
     8 'norm      '    .11754E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12531E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0685       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.062       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    24.962       1.0000         .10000E-03   10000.    
    16 'norm      '    17.350       1.0000         .10000E-03   10000.    
    17 'norm      '    25.295       1.0000         .10000E-03   10000.    
    18 'norm      '    26.912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .85793E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87821       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3906       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=   7214.674     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2081 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.5874        .52876E-07** at limit **
   2  norm          .10000E-03    4.6038       -.47665E-07** at limit **
   3  Prefactor     11.993        10.170       -.16995E-05    .11981E-05
   4  Prefactor     .10000E-03    2.6661        .51361E-07** at limit **
   5  Prefactor     32.897        25.902        .10691E-04    .30247E-04
   6  norm          .10000E-03    .64444        .94387E-07** at limit **
   7  norm          4.2088        5.4084       -.17892E-05   -.11968E-04
   8  norm          .10000E-03    8.2144       -.27730E-06** at limit **
   9  Prefactor     .10000E-03    13.376       -.17791E-06** at limit **
  10  norm          .10000E-03    12.374        .16275E-06** at limit **
  11  Prefactor     .10000E-03    42.131       -.18193E-05** at limit **
  12  norm          1.0707        .63702        .58556E-07   -.77421E-03
  13  Prefactor     16.060        10.043       -.19897E-05    .87643E-05
  14  Prefactor     .10000E-03    58.641        .59126E-06** at limit **
  15  norm          24.960        14.796       -.38561E-06    .95072E-05
  16  norm          17.350        4.7137        .18510E-05    .15480E-05
  17  norm          25.295        15.322        .74263E-07    .16534E-05
  18  norm          26.910        12.615        .21179E-06   -.13204E-04
  19  Prefactor     .10000E-03    36.265        .37394E-05** at limit **
  20  Prefactor     .10031E-03    26.651       -.56988E-06** at limit **
  21  Normalizat    .87804        .29169       -.48323E-05    .28178E-04
  22  Prefactor     1.3908        .15527        .99390E-06   -.10189E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.9929
  Prefactor  = 0.0001
  Prefactor  = 32.8969
  norm       = 0.000100001
  norm       = 4.20876
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07069
  Prefactor  = 16.0597
  Prefactor  = 0.0001
  norm       = 24.9605
  norm       = 17.3501
  norm       = 25.2948
  norm       = 26.9104
  Prefactor  = 0.0001
  Prefactor  = 0.000100313
  Normalizat = 0.878039
  Prefactor  = 1.39077
 **********
 **   18 **HESSE 
 **********

 FCN=   7214.674     FROM HESSE     STATUS=OK           352 CALLS     2433 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.6103        .17799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.993        10.165        .11567E-03   -1.5015    
   4  Prefactor     .10000E-03    2.6688        .13543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.897        25.879        .69834E-04   -1.4560    
   6  norm          .10000E-03    4.2191        .13021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.2088        5.3699        .18053E-03   -1.5298    
   8  norm          .10000E-03    8.3595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    12.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    43.234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0707        9.5049        .23535E-02   -1.5501    
  13  Prefactor     16.060        10.028        .99935E-04   -1.4906    
  14  Prefactor     .10000E-03    58.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          24.960        14.790        .80177E-04   -1.4708    
  16  norm          17.350        4.7102        .90430E-04   -1.4875    
  17  norm          25.295        15.322        .79648E-04   -1.4702    
  18  norm          26.910        12.610        .77224E-04   -1.4670    
  19  Prefactor     .10000E-03    36.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10031E-03    27.791        .14007       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87804        .32478        .46368E-03   -.97236    
  22  Prefactor     1.3908        .17994        .20741E-03   -.80647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15207e-09
Minuit parameter uncertainties:
  1  6.34274e-06
  2  1.8565e-06
  3  10.1663
  4  9.76755e-07
  5  25.8876
  6  9.58535e-05
  7  5.37055
  8  8.15719e-05
  9  7.0245e-06
  10  2.49383e-06
  11  0.000117956
  12  6.38128
  13  10.0293
  14  3.9862e-05
  15  14.7922
  16  4.71034
  17  15.3245
  18  12.6108
  19  5.76567e-05
  20  0.00590484
  21  0.325508
  22  0.180021
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.606e+01  1.003e+01  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:  1.391e+00  1.800e-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:  8.780e-01  3.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.77
Ra Dec: 207.387 -11.519
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 1.56e-07 +/- 9.75e-08
Energy Flux (Fixed Index): 4.56e-05 +/- 2.85e-05

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) = 7214.38071389
delta logL = 0.293659459018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7214.38026307
delta logL = 0.294110273584

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.824       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1960       1.0000          .0000       10.000    
     3 'Normalizat'    .90704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3780       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7214.380     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      310 TOTAL
                     EDM=   .90E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.794        11.248        .44978E-03   -.52321E-05
   2  Index         2.1948        .36925        .62861E-02    .98511E-05
   3  Normalizat    .90758        .32008        .45692E-03    .39561E-05
   4  Prefactor     1.3779        .17587        .20815E-03    .18024E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.7943
  Index      = 2.1948
  Normalizat = 0.907584
  Prefactor  = 1.37793
 **********
 **   18 **HESSE 
 **********

 FCN=   7214.380     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.794        11.172        .17991E-04   -1.4818    
   2  Index         2.1948        .36666        .25144E-03   -.59564    
   3  Normalizat    .90758        .32026        .18277E-04   -.96194    
   4  Prefactor     1.3779        .17596        .83260E-05   -.81018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98014e-13
Minuit parameter uncertainties:
  1  11.1736
  2  0.367142
  3  0.320933
  4  0.176035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998937': 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) = 7214.38025076
delta logL = 0.294122585836

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.979e+01  1.117e+01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.195e+00  3.671e-01  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:  1.378e+00  1.760e-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:  9.076e-01  3.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.43
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 2.19 +/- 0.37
Photon Flux (Free Index): 1.32e-07 +/- 8.44e-08
Energy Flux (Free Index): 6.00e-05 +/- 4.00e-05

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/998937/cmap_HighResolution_562032001_562291201_4FGL_J1349.5-1131_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.56e-07', energy_flux2='6.00e-05', photon_flux_error='9.75e-08', dlogl='2.94e-01', energy_flux='4.56e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-08 14:40:58.615705', photon_index_error2='0.37', photon_index2='2.19', ts='4.77', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', energy_flux_error2='4.00e-05', EG='0.88', time_epoch_completed='1631137258.62', return_code='0', job_id='998937', GAL2='1.38', EG2='0.91', return_code2='0', energy_flux_error='2.85e-05', photon_flux_error2='8.44e-08', ts2='5.43', photon_index='2.49' WHERE bin_id='1245' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:40:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 998937: <4FGL_J1349.5-1131_daily_bin1245> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1245> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 14:30:24 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:30:34 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:34 2021
Terminated at Wed Sep  8 14:40:59 2021
Results reported at Wed Sep  8 14:40:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1245 207.387 -11.5188 562032001 562291201 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 :                                   566.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            635 sec.

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

