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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1392
RA = 207.387, Dec = -11.5188
tmin = 600134401, tmax = 600393601
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='999155', job_status='RUN', time_executed='2021-09-08 14:31:51.354606', time_epoch_executed='1631136711.35' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999155

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999155/ft1_4FGL_J1349.5-1131_daily_bin1392.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999155/ft2_4FGL_J1349.5-1131_daily_bin1392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999155/ft1_4FGL_J1349.5-1131_daily_bin1392.fits outfile=/scratch/kocevski/999155/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1392.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=600134401.0 tmax=600393601.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.96
user 4.70
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/999155/ft2_4FGL_J1349.5-1131_daily_bin1392.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/999155/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1392.fits evtable="EVENTS" outfile="/scratch/kocevski/999155/ft1_filtered_4FGL_J1349.5-1131_daily_bin1392.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.55
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999155/ft1_filtered_4FGL_J1349.5-1131_daily_bin1392.fits" evtable="EVENTS" scfile=/scratch/kocevski/999155/ft2_4FGL_J1349.5-1131_daily_bin1392.fits sctable="SC_DATA" outfile=/scratch/kocevski/999155/ltcube_600134401_600393601_4FGL_J1349.5-1131_daily_bin1392.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/999155/ft2_4FGL_J1349.5-1131_daily_bin1392.fits
.....................!
real 17.26
user 16.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999155/ft1_filtered_4FGL_J1349.5-1131_daily_bin1392.fits evtable="EVENTS" scfile=/scratch/kocevski/999155/ft2_4FGL_J1349.5-1131_daily_bin1392.fits sctable="SC_DATA" expcube=/scratch/kocevski/999155/ltcube_600134401_600393601_4FGL_J1349.5-1131_daily_bin1392.fits outfile=/scratch/kocevski/999155/expmap_600134401_600393601_4FGL_J1349.5-1131_daily_bin1392.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/999155/ltcube_600134401_600393601_4FGL_J1349.5-1131_daily_bin1392.fits
.....................!
real 194.27
user 188.39
sys 5.30

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/999155/ft1_filtered_4FGL_J1349.5-1131_daily_bin1392.fits scfile=/scratch/kocevski/999155/ft2_4FGL_J1349.5-1131_daily_bin1392.fits outfile=/scratch/kocevski/999155/cmap_600134401_600393601_4FGL_J1349.5-1131_daily_bin1392.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999155/ft1_filtered_4FGL_J1349.5-1131_daily_bin1392.fits scfile=/scratch/kocevski/999155/ft2_4FGL_J1349.5-1131_daily_bin1392.fits outfile=/scratch/kocevski/999155/cmap_HighResolution_600134401_600393601_4FGL_J1349.5-1131_daily_bin1392.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.60
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/999155/ft1_filtered_4FGL_J1349.5-1131_daily_bin1392.fits evtable="EVENTS" scfile=/scratch/kocevski/999155/ft2_4FGL_J1349.5-1131_daily_bin1392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/999155/Model_4FGL_J1349.5-1131_daily_bin1392.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/999155/ft1_filtered_4FGL_J1349.5-1131_daily_bin1392.fits.....................!
real 81.76
user 80.23
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.7826       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11261E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0177       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4411       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3164       1.0000         .10000E-03   10000.    
     7 'norm      '    .11021E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.073       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .56204E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .46106E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.234       1.0000         .10000E-03   10000.    
    12 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.090       1.0000         .10000E-03   10000.    
    15 'norm      '    30.356       1.0000         .10000E-03   10000.    
    16 'norm      '    4.0848       1.0000         .10000E-03   10000.    
    17 'norm      '    6.9152       1.0000         .10000E-03   10000.    
    18 'norm      '    8.6731       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10658E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87438       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98749       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=   11072.17     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2135 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2251        .20413E-08** at limit **
   2  norm          3.7828        4.1630        .21851E-06    .21020E-03
   3  Prefactor     .10000E-03    6.4048        .14744E-06** at limit **
   4  Prefactor     2.0159        4.2999       -.91937E-06   -.10039E-02
   5  Prefactor     4.4335        11.250        .25154E-05   -.14338E-03
   6  norm          1.3163        1.0404       -.35000E-07   -.11001E-02
   7  norm          .10924E-03    1.1342       -.73702E-07** at limit **
   8  norm          19.077        6.6112       -.45479E-06   -.10380E-03
   9  Prefactor     .10006E-03    4.6845        .13143E-05** at limit **
  10  norm          .10099E-03    13.145       -.10705E-05** at limit **
  11  Prefactor     16.262        8.8994       -.80095E-06   -.86486E-03
  12  norm          .10000E-03    2.8673       -.21739E-06** at limit **
  13  Prefactor     .10000E-03    2.3514       -.12068E-06** at limit **
  14  Prefactor     10.100        19.389        .20253E-04   -.29342E-04
  15  norm          30.354        7.6531        .28894E-06   -.37163E-04
  16  norm          4.0848        2.0175        .75063E-07   -.29078E-03
  17  norm          6.9172        7.4061        .56670E-07    .50059E-05
  18  norm          8.6686        5.7400       -.95883E-06   -.11326E-03
  19  Prefactor     .10000E-03    3.2911        .30514E-07** at limit **
  20  Prefactor     .10000E-03    17.737       -.17156E-05** at limit **
  21  Normalizat    .87441        .16931       -.27688E-06   -.19237E-03
  22  Prefactor     .98752        .88490E-01   -.37636E-06   -.17259E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.78279
  Prefactor  = 0.0001
  Prefactor  = 2.01588
  Prefactor  = 4.43347
  norm       = 1.31628
  norm       = 0.000109241
  norm       = 19.0773
  Prefactor  = 0.000100061
  norm       = 0.000100989
  Prefactor  = 16.2623
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0999
  norm       = 30.3544
  norm       = 4.08482
  norm       = 6.91724
  norm       = 8.6686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.874408
  Prefactor  = 0.987519
 **********
 **   18 **HESSE 
 **********

 FCN=   11072.17     FROM HESSE     STATUS=OK           366 CALLS     2501 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.7828        4.1673        .20756E-03   -1.5319    
   3  Prefactor     .10000E-03    6.6712        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0159        4.3161        .29137E-03   -1.5424    
   5  Prefactor     4.4335        11.244        .19108E-03   -1.5287    
   6  norm          1.3163        1.0257        .90450E-04   -1.5479    
   7  norm          .10924E-03    1.8581        .35891E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.077        6.5744        .91709E-04   -1.4834    
   9  Prefactor     .10006E-03    28.818        .39534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10099E-03    13.701        .13679       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.262        8.1141        .99404E-04   -1.4901    
  12  norm          .10000E-03    2.9869        .34771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.3817        .15708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.100        19.154        .12615E-03   -1.5072    
  15  norm          30.354        7.6401        .72721E-04   -1.4606    
  16  norm          4.0848        2.0148        .99559E-04   -1.5304    
  17  norm          6.9172        7.4064        .15257E-03   -1.5182    
  18  norm          8.6686        5.7400        .13611E-03   -1.5119    
  19  Prefactor     .10000E-03    3.2945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87441        .19450        .34480E-03   -.97365    
  22  Prefactor     .98752        .10257        .17992E-03   -.93147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81585e-09
Minuit parameter uncertainties:
  1  3.18097e-06
  2  4.16759
  3  3.21149e-06
  4  4.31672
  5  11.2489
  6  1.02573
  7  0.00828762
  8  6.57466
  9  0.00266225
  10  0.00736371
  11  8.11462
  12  3.39331e-05
  13  1.60101e-05
  14  19.1656
  15  7.64032
  16  2.01478
  17  7.40742
  18  5.74035
  19  2.51412e-06
  20  2.18696e-05
  21  0.194652
  22  0.10259
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.601e-05  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.875e-01  1.026e-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.744e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.387 -11.519
Photon Flux Upper Limit: 7.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999155/likelihoodResults_600134401_600393601_4FGL_J1349.5-1131_daily_bin1392.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) = 11072.1707091
delta logL = -0.00200199181563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11072.168706
delta logL = 1.08361928142e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5293       1.0000          .0000       10.000    
     3 'Normalizat'    .87442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98751       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11070.80     FROM MIGRAD    STATUS=CONVERGED    237 CALLS      391 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26621E-03    .35448E-03    .33191E-03** at limit **
   2  Index         8.4761        .65348        .20000        .21353E-03
   3  Normalizat    .77842        .20632        .34480E-02   -.65930E-04
   4  Prefactor     1.0212        .10743        .17992E-03   -.13944E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000266209
  Index      = 8.47605
  Normalizat = 0.778416
  Prefactor  = 1.02117
 **********
 **   18 **HESSE 
 **********

 FCN=   11070.80     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      422 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26621E-03    .95976E-02    .13902E-05   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.4761        8.1873        .87057E-02    .76871    
   3  Normalizat    .77842        .16132        .13792E-03   -1.0087    
   4  Prefactor     1.0212        .87855E-01    .35985E-04   -.92027    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.90105e-09
Minuit parameter uncertainties:
  1  0.00252604
  2  4.98521
  3  0.161423
  4  0.0878671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999155': 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) = 11070.7983945
delta logL = 1.37031256581

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.662e-04  2.526e-03  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  8.476e+00  4.985e+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:  1.021e+00  8.787e-02  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:  7.784e-01  1.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.97
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 8.48 +/- 4.99
Photon Flux (Free Index): 8.10e-08 +/- 1.49e-06
Energy Flux (Free Index): 9.30e-06 +/- 1.71e-04

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/999155/cmap_HighResolution_600134401_600393601_4FGL_J1349.5-1131_daily_bin1392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', comment='SUCCESS', energy_flux2='9.30e-06', dlogl='1.37e+00', photon_flux2='8.10e-08', job_status='DONE', time_completed='2021-09-08 14:46:27.459524', photon_index_error2='4.99', photon_index2='8.48', ts='-0.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='7.23e-08', energy_flux_error2='1.71e-04', EG='0.87', time_epoch_completed='1631137587.46', return_code='0', job_id='999155', GAL2='1.02', EG2='0.78', return_code2='102', photon_flux_error2='1.49e-06', ts2='2.97', photon_index='2.49' WHERE bin_id='1392' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:46:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 999155: <4FGL_J1349.5-1131_daily_bin1392> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1392 207.387 -11.5188 600134401 600393601 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 :                                   851.56 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            948 sec.

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

