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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1163
RA = 207.387, Dec = -11.5188
tmin = 540777601, tmax = 541036801
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='998058', job_status='RUN', time_executed='2021-09-08 14:28:29.919861', time_epoch_executed='1631136509.92' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998058

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998058/ft1_4FGL_J1349.5-1131_daily_bin1163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998058/ft2_4FGL_J1349.5-1131_daily_bin1163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998058/ft1_4FGL_J1349.5-1131_daily_bin1163.fits outfile=/scratch/kocevski/998058/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1163.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=540777601.0 tmax=541036801.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.68
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998058/ft2_4FGL_J1349.5-1131_daily_bin1163.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/998058/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1163.fits evtable="EVENTS" outfile="/scratch/kocevski/998058/ft1_filtered_4FGL_J1349.5-1131_daily_bin1163.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.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998058/ft1_filtered_4FGL_J1349.5-1131_daily_bin1163.fits" evtable="EVENTS" scfile=/scratch/kocevski/998058/ft2_4FGL_J1349.5-1131_daily_bin1163.fits sctable="SC_DATA" outfile=/scratch/kocevski/998058/ltcube_540777601_541036801_4FGL_J1349.5-1131_daily_bin1163.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/998058/ft2_4FGL_J1349.5-1131_daily_bin1163.fits
.....................!
real 16.89
user 16.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998058/ft1_filtered_4FGL_J1349.5-1131_daily_bin1163.fits evtable="EVENTS" scfile=/scratch/kocevski/998058/ft2_4FGL_J1349.5-1131_daily_bin1163.fits sctable="SC_DATA" expcube=/scratch/kocevski/998058/ltcube_540777601_541036801_4FGL_J1349.5-1131_daily_bin1163.fits outfile=/scratch/kocevski/998058/expmap_540777601_541036801_4FGL_J1349.5-1131_daily_bin1163.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/998058/ltcube_540777601_541036801_4FGL_J1349.5-1131_daily_bin1163.fits
.....................!
real 191.66
user 186.19
sys 4.98

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/998058/ft1_filtered_4FGL_J1349.5-1131_daily_bin1163.fits scfile=/scratch/kocevski/998058/ft2_4FGL_J1349.5-1131_daily_bin1163.fits outfile=/scratch/kocevski/998058/cmap_540777601_541036801_4FGL_J1349.5-1131_daily_bin1163.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998058/ft1_filtered_4FGL_J1349.5-1131_daily_bin1163.fits scfile=/scratch/kocevski/998058/ft2_4FGL_J1349.5-1131_daily_bin1163.fits outfile=/scratch/kocevski/998058/cmap_HighResolution_540777601_541036801_4FGL_J1349.5-1131_daily_bin1163.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998058/ft1_filtered_4FGL_J1349.5-1131_daily_bin1163.fits evtable="EVENTS" scfile=/scratch/kocevski/998058/ft2_4FGL_J1349.5-1131_daily_bin1163.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998058/Model_4FGL_J1349.5-1131_daily_bin1163.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/998058/ft1_filtered_4FGL_J1349.5-1131_daily_bin1163.fits.....................!
real 79.35
user 77.71
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.554       1.0000         .10000E-03   10000.    
     2 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4875       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3972       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4452       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0620       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4702       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3048       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0464       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5557       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.4254       1.0000         .10000E-03   10000.    
    17 'norm      '    14.768       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.005       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.7786       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .67280       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=   10805.41     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2058 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.553        14.826        .80226E-08   -.13008E-04
   2  norm          .10000E-03    6.6677        .22023E-05** at limit **
   3  Prefactor     4.4873        4.7301        .22497E-06   -.94780E-03
   4  Prefactor     3.3976        8.5328       -.17209E-06   -.63051E-04
   5  Prefactor     .10000E-03    9.8568        .83149E-06** at limit **
   6  norm          1.4452        1.1537        .57898E-07   -.12002E-03
   7  norm          1.0622        2.4861        .54653E-07   -.29051E-03
   8  norm          2.4703        4.3960        .17043E-07   -.15185E-03
   9  Prefactor     .10000E-03    5.6741       -.10016E-05** at limit **
  10  norm          .10000E-03    8.0358       -.25774E-05** at limit **
  11  Prefactor     6.3048        5.7197        .15605E-06   -.79576E-03
  12  norm          2.0464        1.9731       -.13330E-07   -.30826E-04
  13  Prefactor     6.5562        3.9825       -.10764E-05   -.23203E-03
  14  Prefactor     .10000E-03    48.242       -.94703E-06** at limit **
  15  norm          .10000E-03    4.3552        .14926E-06** at limit **
  16  norm          4.4255        2.1599        .22121E-07   -.31253E-04
  17  norm          14.768        10.136       -.15519E-07   -.25157E-06
  18  norm          .10000E-03    2.0528        .12351E-06** at limit **
  19  Prefactor     23.006        12.820       -.14779E-06   -.56629E-05
  20  Prefactor     .10000E-03    5.0092       -.31209E-06** at limit **
  21  Normalizat    1.7785        .18591        .26102E-06   -.28925E-04
  22  Prefactor     .67281        .90967E-01    .27261E-07    .95073E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 28.5531
  norm       = 0.0001
  Prefactor  = 4.48732
  Prefactor  = 3.39755
  Prefactor  = 0.0001
  norm       = 1.44522
  norm       = 1.06223
  norm       = 2.47031
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.30482
  norm       = 2.04643
  Prefactor  = 6.5562
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.42548
  norm       = 14.7684
  norm       = 0.0001
  Prefactor  = 23.0055
  Prefactor  = 0.0001
  Normalizat = 1.77853
  Prefactor  = 0.672814
 **********
 **   18 **HESSE 
 **********

 FCN=   10805.41     FROM HESSE     STATUS=OK           348 CALLS     2406 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.553        14.864        .74975E-04   -1.4639    
   2  norm          .10000E-03    6.7087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4873        6.5824        .95033E-03   -1.5284    
   4  Prefactor     3.3976        8.5735        .21950E-03   -1.5339    
   5  Prefactor     .10000E-03    9.9313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4452        1.1416        .95397E-04   -1.5468    
   7  norm          1.0622        2.3591        .21324E-03   -1.5502    
   8  norm          2.4703        4.2277        .24914E-03   -1.5394    
   9  Prefactor     .10000E-03    5.7270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.0426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3048        6.9960        .79930E-03   -1.5206    
  12  norm          2.0464        1.9659        .13936E-03   -1.5422    
  13  Prefactor     6.5562        4.0079        .15448E-03   -1.5196    
  14  Prefactor     .10000E-03    48.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.4628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4255        2.1664        .10232E-03   -1.5287    
  17  norm          14.768        10.137        .10422E-03   -1.4939    
  18  norm          .10000E-03    2.0703        .14540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.006        12.830        .83512E-04   -1.4748    
  20  Prefactor     .10000E-03    5.0165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.7785        .21859        .28033E-03   -.70225    
  22  Prefactor     .67281        .10559        .22083E-03   -1.0460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42894e-09
Minuit parameter uncertainties:
  1  14.8663
  2  9.73446e-06
  3  6.58346
  4  8.57664
  5  1.0449e-05
  6  1.14165
  7  2.35935
  8  4.22819
  9  7.35422e-06
  10  2.31052e-05
  11  6.99686
  12  1.96601
  13  4.00806
  14  1.38183e-05
  15  4.45134e-05
  16  2.16648
  17  10.1382
  18  1.43374e-09
  19  12.8318
  20  2.65268e-06
  21  0.218708
  22  0.105618
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  6.556e+00  4.008e+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:  6.728e-01  1.056e-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.779e+00  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.63
Ra Dec: 207.387 -11.519
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 6.38e-08 +/- 3.89e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.14e-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) = 10805.1330113
delta logL = 0.279319268544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10805.1323298
delta logL = 0.280000849714

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2317       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1549       1.0000          .0000       10.000    
     3 'Normalizat'    1.7967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66556       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=   10805.13     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      241 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2340        119.37        .34934E-02    .21173E-03
   2  Index         2.1548        6.0749        .22647        .22894E-04
   3  Normalizat    1.7967        .10003        .63132E-01    .83394E-06
   4  Prefactor     .66555        .49375E-01    .41941E-01    .29390E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.23399
  Index      = 2.15484
  Normalizat = 1.79669
  Prefactor  = 0.665552
 **********
 **   18 **HESSE 
 **********

 FCN=   10805.13     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2340        5.0732        .13973E-03   -1.5134    
   2  Index         2.1548        .42172        .79235E-02   -.60533    
   3  Normalizat    1.7967        .20061        .27919E-03   -.69750    
   4  Prefactor     .66555        .10304        .22185E-03   -1.0489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23063e-10
Minuit parameter uncertainties:
  1  5.07351
  2  0.422458
  3  0.200702
  4  0.103069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998058': 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) = 10805.1323296
delta logL = 0.280000955572

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  8.234e+00  5.074e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.155e+00  4.225e-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:  6.656e-01  1.031e-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.797e+00  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.18
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 2.15 +/- 0.42
Photon Flux (Free Index): 5.26e-08 +/- 3.63e-08
Energy Flux (Free Index): 2.58e-05 +/- 2.01e-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/998058/cmap_HighResolution_540777601_541036801_4FGL_J1349.5-1131_daily_bin1163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.38e-08', energy_flux2='2.58e-05', photon_flux_error='3.89e-08', dlogl='2.80e-01', energy_flux='1.86e-05', photon_flux2='5.26e-08', job_status='DONE', time_completed='2021-09-08 14:40:48.587842', photon_index_error2='0.42', photon_index2='2.15', ts='4.63', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='2.01e-05', EG='1.78', time_epoch_completed='1631137248.59', return_code='0', job_id='998058', GAL2='0.67', EG2='1.80', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='3.63e-08', ts2='5.18', photon_index='2.49' WHERE bin_id='1163' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:40:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 998058: <4FGL_J1349.5-1131_daily_bin1163> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1163 207.387 -11.5188 540777601 541036801 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 :                                   698.07 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             294.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            918 sec.

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

