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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1123
RA = 207.387, Dec = -11.5188
tmin = 530409601, tmax = 530668801
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='998013', job_status='RUN', time_executed='2021-09-08 14:29:22.819892', time_epoch_executed='1631136562.82' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998013

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998013/ft1_4FGL_J1349.5-1131_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998013/ft2_4FGL_J1349.5-1131_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998013/ft1_4FGL_J1349.5-1131_daily_bin1123.fits outfile=/scratch/kocevski/998013/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1123.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=530409601.0 tmax=530668801.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.43
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998013/ft2_4FGL_J1349.5-1131_daily_bin1123.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/998013/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1123.fits evtable="EVENTS" outfile="/scratch/kocevski/998013/ft1_filtered_4FGL_J1349.5-1131_daily_bin1123.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998013/ft1_filtered_4FGL_J1349.5-1131_daily_bin1123.fits" evtable="EVENTS" scfile=/scratch/kocevski/998013/ft2_4FGL_J1349.5-1131_daily_bin1123.fits sctable="SC_DATA" outfile=/scratch/kocevski/998013/ltcube_530409601_530668801_4FGL_J1349.5-1131_daily_bin1123.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/998013/ft2_4FGL_J1349.5-1131_daily_bin1123.fits
.....................!
real 16.73
user 16.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998013/ft1_filtered_4FGL_J1349.5-1131_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/998013/ft2_4FGL_J1349.5-1131_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/998013/ltcube_530409601_530668801_4FGL_J1349.5-1131_daily_bin1123.fits outfile=/scratch/kocevski/998013/expmap_530409601_530668801_4FGL_J1349.5-1131_daily_bin1123.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/998013/ltcube_530409601_530668801_4FGL_J1349.5-1131_daily_bin1123.fits
.....................!
real 194.24
user 187.92
sys 5.24

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/998013/ft1_filtered_4FGL_J1349.5-1131_daily_bin1123.fits scfile=/scratch/kocevski/998013/ft2_4FGL_J1349.5-1131_daily_bin1123.fits outfile=/scratch/kocevski/998013/cmap_530409601_530668801_4FGL_J1349.5-1131_daily_bin1123.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998013/ft1_filtered_4FGL_J1349.5-1131_daily_bin1123.fits scfile=/scratch/kocevski/998013/ft2_4FGL_J1349.5-1131_daily_bin1123.fits outfile=/scratch/kocevski/998013/cmap_HighResolution_530409601_530668801_4FGL_J1349.5-1131_daily_bin1123.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10198E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11030E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .53076       1.0000         .10000E-03   10000.    
     7 'norm      '    6.7231       1.0000         .10000E-03   10000.    
     8 'norm      '    7.3622       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6351       1.0000         .10000E-03   10000.    
    10 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12988       1.0000         .10000E-03   10000.    
    12 'norm      '    .25102E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.721       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.319       1.0000         .10000E-03   10000.    
    16 'norm      '    5.8037       1.0000         .10000E-03   10000.    
    17 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.1211       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85782       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3410       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8550.360     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1681 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.3544        .76224E-06** at limit **
   2  norm          .10000E-03    3.4149        .66700E-06** at limit **
   3  Prefactor     .10000E-03    6.8208       -.15449E-06** at limit **
   4  Prefactor     .10000E-03    4.9800       -.64607E-06** at limit **
   5  Prefactor     .10000E-03    43.169       -.37717E-05** at limit **
   6  norm          .53115        1.4123       -.18709E-06   -.23832E-04
   7  norm          6.7240        3.5609        .11713E-06   -.24222E-04
   8  norm          7.3620        1.3721        .54051E-07    .37377E-03
   9  Prefactor     3.6534        12.928       -.21869E-05    .36973E-03
  10  norm          .10000E-03    14.333       -.42309E-05** at limit **
  11  Prefactor     .42022E-01    741.80        .58172E-06    .39042E-04
  12  norm          .10000E-03    5.5451       -.35253E-05** at limit **
  13  Prefactor     34.729        2.2011       -.10098E-06   -.37758E-02
  14  Prefactor     .10000E-03    17.865       -.19433E-05** at limit **
  15  norm          18.305        1.9130       -.17521E-06   -.12496E-02
  16  norm          5.8035        2.9528       -.72678E-07    .27546E-04
  17  norm          .10000E-03    5.0842        .89094E-06** at limit **
  18  norm          7.1207        1.0490       -.15786E-07    .31198E-05
  19  Prefactor     .10000E-03    10.365        .20903E-05** at limit **
  20  Prefactor     .10000E-03    9.7689       -.23607E-05** at limit **
  21  Normalizat    .85782        .27004       -.66545E-06    .13823E-05
  22  Prefactor     1.3411        .14306        .24995E-06    .56103E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.531148
  norm       = 6.724
  norm       = 7.36196
  Prefactor  = 3.65343
  norm       = 0.000100004
  Prefactor  = 0.0420219
  norm       = 0.0001
  Prefactor  = 34.7294
  Prefactor  = 0.000100001
  norm       = 18.3053
  norm       = 5.80354
  norm       = 0.0001
  norm       = 7.12071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.857818
  Prefactor  = 1.34106
 **********
 **   18 **HESSE 
 **********

 FCN=   8550.360     FROM HESSE     STATUS=OK           394 CALLS     2075 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3487        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.4141        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.7780        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9704        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    43.454        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .53115        1.4519        .11396E-01   -1.5562    
   7  norm          6.7240        3.9044        .38688E-02   -1.5189    
   8  norm          7.3620        5.8940        .36954E-02   -1.5165    
   9  Prefactor     3.6534        13.151        .52973E-02   -1.5326    
  10  norm          .10000E-03    27.157        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .42022E-01    7.8510        .96527E-01   -1.5667    
  12  norm          .10000E-03    2.4751        .51678E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.729        10.020        .17002E-02   -1.4529    
  14  Prefactor     .10000E-03    26.671        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.305        13.253        .23394E-02   -1.4852    
  16  norm          5.8035        2.9960        .41678E-02   -1.5226    
  17  norm          .10000E-03    5.0863        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.1207        6.3738        .37580E-02   -1.5174    
  19  Prefactor     .10000E-03    10.394        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.8118        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85782        .25360        .98403E-01   -.97959    
  22  Prefactor     1.3411        .13092        .31930E-01   -.82094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21968e-09
Minuit parameter uncertainties:
  1  7.14523e-07
  2  1.05612e-07
  3  6.69356e-06
  4  1.07829e-06
  5  8.35502e-05
  6  1.45198
  7  3.9045
  8  5.89451
  9  13.1614
  10  0.000653381
  11  1.14754
  12  2.75894e-06
  13  10.0209
  14  0.000321781
  15  13.2551
  16  2.99607
  17  4.5469e-06
  18  6.37436
  19  7.20327e-05
  20  5.64329e-05
  21  0.253949
  22  0.130947
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  3.473e+01  1.002e+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.341e+00  1.309e-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.578e-01  2.539e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.79
Ra Dec: 207.387 -11.519
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 3.38e-07 +/- 9.74e-08
Energy Flux (Fixed Index): 9.87e-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) = 8550.26070276
delta logL = 0.0993955476788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8550.20578305
delta logL = 0.154315254296

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.390       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3544       1.0000          .0000       10.000    
     3 'Normalizat'    .88578       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3306       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=   8550.206     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      234 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.390        133.50        .16172E-02    .28399E-02
   2  Index         2.3544        2.5452        .97620E-01    .85266E-03
   3  Normalizat    .88578        .30457        .97041E-01    .21547E-03
   4  Prefactor     1.3306        .13876        .32096E-01    .23072E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.3899
  Index      = 2.35441
  Normalizat = 0.88578
  Prefactor  = 1.33061
 **********
 **   18 **HESSE 
 **********

 FCN=   8550.206     FROM HESSE     STATUS=OK            29 CALLS      263 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.390        11.608        .64688E-04   -1.4468    
   2  Index         2.3544        .24870        .40852E-02   -.55756    
   3  Normalizat    .88578        .26602        .42995E-03   -.96962    
   4  Prefactor     1.3306        .14295        .19547E-03   -.82401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15422e-09
Minuit parameter uncertainties:
  1  11.6089
  2  0.248846
  3  0.266414
  4  0.142994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998013': 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) = 8550.20578305
delta logL = 0.15431526135

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  3.839e+01  1.161e+01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.354e+00  2.488e-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.331e+00  1.430e-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.858e-01  2.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.74
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 2.35 +/- 0.25
Photon Flux (Free Index): 3.12e-07 +/- 9.39e-08
Energy Flux (Free Index): 1.09e-04 +/- 3.55e-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/998013/cmap_HighResolution_530409601_530668801_4FGL_J1349.5-1131_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.38e-07', energy_flux2='1.09e-04', photon_flux_error='9.74e-08', dlogl='1.54e-01', energy_flux='9.87e-05', photon_flux2='3.12e-07', job_status='DONE', time_completed='2021-09-08 14:40:36.434046', photon_index_error2='0.25', photon_index2='2.35', ts='29.79', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='3.55e-05', EG='0.86', time_epoch_completed='1631137236.43', return_code='0', job_id='998013', GAL2='1.33', EG2='0.89', return_code2='0', energy_flux_error='2.85e-05', photon_flux_error2='9.39e-08', ts2='30.74', photon_index='2.49' WHERE bin_id='1123' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:40:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 998013: <4FGL_J1349.5-1131_daily_bin1123> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1123 207.387 -11.5188 530409601 530668801 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 :                                   591.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            910 sec.

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

