/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 25 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 = 7350
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1189
RA = 207.387, Dec = -11.5188
tmin = 547516801, tmax = 547776001
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='998087', job_status='RUN', time_executed='2021-09-08 14:26:54.249721', time_epoch_executed='1631136414.25' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998087

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998087/ft1_4FGL_J1349.5-1131_daily_bin1189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998087/ft2_4FGL_J1349.5-1131_daily_bin1189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998087/ft1_4FGL_J1349.5-1131_daily_bin1189.fits outfile=/scratch/kocevski/998087/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1189.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=547516801.0 tmax=547776001.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.60
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998087/ft1_filtered_4FGL_J1349.5-1131_daily_bin1189.fits" evtable="EVENTS" scfile=/scratch/kocevski/998087/ft2_4FGL_J1349.5-1131_daily_bin1189.fits sctable="SC_DATA" outfile=/scratch/kocevski/998087/ltcube_547516801_547776001_4FGL_J1349.5-1131_daily_bin1189.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/998087/ft2_4FGL_J1349.5-1131_daily_bin1189.fits
.....................!
real 16.24
user 15.75
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998087/ft1_filtered_4FGL_J1349.5-1131_daily_bin1189.fits evtable="EVENTS" scfile=/scratch/kocevski/998087/ft2_4FGL_J1349.5-1131_daily_bin1189.fits sctable="SC_DATA" expcube=/scratch/kocevski/998087/ltcube_547516801_547776001_4FGL_J1349.5-1131_daily_bin1189.fits outfile=/scratch/kocevski/998087/expmap_547516801_547776001_4FGL_J1349.5-1131_daily_bin1189.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/998087/ltcube_547516801_547776001_4FGL_J1349.5-1131_daily_bin1189.fits
.....................!
real 192.29
user 186.68
sys 5.00

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/998087/ft1_filtered_4FGL_J1349.5-1131_daily_bin1189.fits scfile=/scratch/kocevski/998087/ft2_4FGL_J1349.5-1131_daily_bin1189.fits outfile=/scratch/kocevski/998087/cmap_547516801_547776001_4FGL_J1349.5-1131_daily_bin1189.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.60
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998087/ft1_filtered_4FGL_J1349.5-1131_daily_bin1189.fits scfile=/scratch/kocevski/998087/ft2_4FGL_J1349.5-1131_daily_bin1189.fits outfile=/scratch/kocevski/998087/cmap_HighResolution_547516801_547776001_4FGL_J1349.5-1131_daily_bin1189.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998087/ft1_filtered_4FGL_J1349.5-1131_daily_bin1189.fits evtable="EVENTS" scfile=/scratch/kocevski/998087/ft2_4FGL_J1349.5-1131_daily_bin1189.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998087/Model_4FGL_J1349.5-1131_daily_bin1189.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/998087/ft1_filtered_4FGL_J1349.5-1131_daily_bin1189.fits.....................!
real 72.15
user 70.63
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6138       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8480       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .91983       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.333       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .21088       1.0000         .10000E-03   10000.    
     7 'norm      '    19.317       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .86565E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3096       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .97555       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.003       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6779       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3499       1.0000         .10000E-03   10000.    
    17 'norm      '    3.4727       1.0000         .10000E-03   10000.    
    18 'norm      '    .23340       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.300       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.335       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3089       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91652       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=   9353.132     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2423 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6128        10.917        .27585E-05    .39396E-05
   2  norm          2.8479        5.9082       -.51626E-06   -.30713E-04
   3  Prefactor     .91483        6.3745       -.33698E-07   -.92818E-04
   4  Prefactor     10.333        8.8351        .62265E-06    .32341E-05
   5  Prefactor     .10000E-03    12.283        .47828E-07** at limit **
   6  norm          .21051        .80465       -.13197E-06   -.30404E-03
   7  norm          19.316        4.9053        .65492E-07    .48298E-05
   8  norm          .10000E-03    5.5844        .36898E-07** at limit **
   9  Prefactor     .10000E-03    3.7995        .46742E-07** at limit **
  10  norm          .10002E-03    15.181       -.29872E-06** at limit **
  11  Prefactor     3.3112        7.7970       -.21942E-06   -.11572E-04
  12  norm          .10000E-03    1.2155       -.78524E-08** at limit **
  13  Prefactor     .97755        5.5192       -.23400E-06   -.10093E-03
  14  Prefactor     34.003        28.629       -.19274E-06    .97195E-06
  15  norm          3.6747        2.6403        .10605E-06   -.55074E-03
  16  norm          4.3504        2.4228       -.69576E-09   -.80190E-04
  17  norm          3.4732        6.2478       -.74970E-06   -.18718E-04
  18  norm          .20486        3.4099        .26600E-06   -.53762E-04
  19  Prefactor     28.307        19.928       -.15025E-05   -.25310E-04
  20  Prefactor     23.336        18.916       -.21117E-06   -.38172E-07
  21  Normalizat    1.3090        .20706       -.59007E-06    .31472E-04
  22  Prefactor     .91640        .10578        .22919E-06   -.49090E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.61276
  norm       = 2.84793
  Prefactor  = 0.914829
  Prefactor  = 10.3331
  Prefactor  = 0.0001
  norm       = 0.210507
  norm       = 19.3161
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100016
  Prefactor  = 3.31121
  norm       = 0.0001
  Prefactor  = 0.977553
  Prefactor  = 34.0029
  norm       = 3.67472
  norm       = 4.35044
  norm       = 3.47325
  norm       = 0.204855
  Prefactor  = 28.3072
  Prefactor  = 23.3363
  Normalizat = 1.30901
  Prefactor  = 0.9164
 **********
 **   18 **HESSE 
 **********

 FCN=   9353.132     FROM HESSE     STATUS=OK           358 CALLS     2781 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6128        10.891        .14533E-03   -1.5156    
   2  norm          2.8479        5.8977        .24093E-03   -1.5370    
   3  Prefactor     .91483        20.363        .45375E-02   -1.5517    
   4  Prefactor     10.333        8.8317        .12465E-03   -1.5065    
   5  Prefactor     .10000E-03    12.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .21051        .81512        .16210E-03   -1.5616    
   7  norm          19.316        4.8587        .91128E-04   -1.4829    
   8  norm          .10000E-03    5.6489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10002E-03    121.58        .73149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.3112        7.7895        .22253E-03   -1.5344    
  12  norm          .10000E-03    1.2192        .10412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .97755        5.6832        .37029E-03   -1.5510    
  14  Prefactor     34.003        28.622        .68721E-04   -1.4541    
  15  norm          3.6747        7.1710        .10530E-02   -1.5325    
  16  norm          4.3504        2.4177        .10537E-03   -1.5291    
  17  norm          3.4732        6.2382        .21700E-03   -1.5335    
  18  norm          .20486        18.956        .33878E-02   -1.5617    
  19  Prefactor     28.307        19.941        .75309E-04   -1.4643    
  20  Prefactor     23.336        18.922        .82921E-04   -1.4741    
  21  Normalizat    1.3090        .23827        .32130E-03   -.83298    
  22  Prefactor     .91640        .12337        .20560E-03   -.95570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33483e-07
Minuit parameter uncertainties:
  1  10.8936
  2  5.89893
  3  8.63513
  4  8.83285
  5  1.02975e-05
  6  0.815162
  7  4.85884
  8  4.80395e-06
  9  8.0892e-07
  10  0.00279859
  11  7.79191
  12  2.36655e-07
  13  4.7145
  14  28.6334
  15  7.17265
  16  2.41775
  17  6.23941
  18  3.94153
  19  19.9452
  20  18.927
  21  0.238465
  22  0.123404
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  9.776e-01  4.714e+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.164e-01  1.234e-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.309e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 207.387 -11.519
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998087/likelihoodResults_547516801_547776001_4FGL_J1349.5-1131_daily_bin1189.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) = 9353.05533199
delta logL = 0.0765030737457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9353.05163661
delta logL = 0.080198453843

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80978       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2769       1.0000          .0000       10.000    
     3 'Normalizat'    1.2933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92093       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=   9353.052     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      228 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80485        18.201        .12476E-01    .10899E-02
   2  Index         3.2816        1.7781        .38291       -.55406E-04
   3  Normalizat    1.2933        .23384E-01    .72971E-01   -.11505E-03
   4  Prefactor     .92091        .12859E-01    .45271E-01   -.86206E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.804847
  Index      = 3.2816
  Normalizat = 1.29333
  Prefactor  = 0.920908
 **********
 **   18 **HESSE 
 **********

 FCN=   9353.052     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .80485        5.3300        .17987E-03   -1.5529    
   2  Index         3.2816        2.8853        .81841E-02   -.35083    
   3  Normalizat    1.2933        .22554        .32290E-03   -.83766    
   4  Prefactor     .92091        .12191        .20513E-03   -.95414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88161e-10
Minuit parameter uncertainties:
  1  4.14265
  2  3.1072
  3  0.225716
  4  0.121942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998087': 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) = 9353.05163416
delta logL = 0.0802009018189

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  8.048e-01  4.143e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.282e+00  3.107e+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.209e-01  1.219e-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.293e+00  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/998087/cmap_HighResolution_547516801_547776001_4FGL_J1349.5-1131_daily_bin1189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.08e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-08 14:39:52.975162', job_id='998087', GAL2='0.92', fit_tolerance='1e-08', EG2='1.29', EG='1.31', time_epoch_completed='1631137192.98', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='8.02e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1189' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:39:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 998087: <4FGL_J1349.5-1131_daily_bin1189> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1189> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 14:25:33 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:26:15 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:26:15 2021
Terminated at Wed Sep  8 14:39:53 2021
Results reported at Wed Sep  8 14:39:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1189 207.387 -11.5188 547516801 547776001 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 :                                   756.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             314.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            860 sec.

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

