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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1621
RA = 207.387, Dec = -11.5188
tmin = 659491201, tmax = 659750401
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='359376', job_status='RUN', time_executed='2021-12-08 00:46:09.962806', time_epoch_executed='1638953169.96' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359376

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359376/ft1_4FGL_J1349.5-1131_daily_bin1621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359376/ft2_4FGL_J1349.5-1131_daily_bin1621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359376/ft1_4FGL_J1349.5-1131_daily_bin1621.fits outfile=/scratch/kocevski/359376/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1621.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=659491201.0 tmax=659750401.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 2.68
user 2.43
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/359376/ft1_filtered_4FGL_J1349.5-1131_daily_bin1621.fits" evtable="EVENTS" scfile=/scratch/kocevski/359376/ft2_4FGL_J1349.5-1131_daily_bin1621.fits sctable="SC_DATA" outfile=/scratch/kocevski/359376/ltcube_659491201_659750401_4FGL_J1349.5-1131_daily_bin1621.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/359376/ft2_4FGL_J1349.5-1131_daily_bin1621.fits
.....................!
real 16.05
user 15.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359376/ft1_filtered_4FGL_J1349.5-1131_daily_bin1621.fits evtable="EVENTS" scfile=/scratch/kocevski/359376/ft2_4FGL_J1349.5-1131_daily_bin1621.fits sctable="SC_DATA" expcube=/scratch/kocevski/359376/ltcube_659491201_659750401_4FGL_J1349.5-1131_daily_bin1621.fits outfile=/scratch/kocevski/359376/expmap_659491201_659750401_4FGL_J1349.5-1131_daily_bin1621.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/359376/ltcube_659491201_659750401_4FGL_J1349.5-1131_daily_bin1621.fits
.....................!
real 192.76
user 187.14
sys 5.15

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/359376/ft1_filtered_4FGL_J1349.5-1131_daily_bin1621.fits scfile=/scratch/kocevski/359376/ft2_4FGL_J1349.5-1131_daily_bin1621.fits outfile=/scratch/kocevski/359376/cmap_659491201_659750401_4FGL_J1349.5-1131_daily_bin1621.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.58
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/359376/ft1_filtered_4FGL_J1349.5-1131_daily_bin1621.fits scfile=/scratch/kocevski/359376/ft2_4FGL_J1349.5-1131_daily_bin1621.fits outfile=/scratch/kocevski/359376/cmap_HighResolution_659491201_659750401_4FGL_J1349.5-1131_daily_bin1621.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.58
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.137       1.0000         .10000E-03   10000.    
     6 'norm      '    3.2471       1.0000         .10000E-03   10000.    
     7 'norm      '    6.8701       1.0000         .10000E-03   10000.    
     8 'norm      '    5.2079       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.908       1.0000         .10000E-03   10000.    
    10 'norm      '    66.514       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11968E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .46409E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.285       1.0000         .10000E-03   10000.    
    16 'norm      '    13.658       1.0000         .10000E-03   10000.    
    17 'norm      '    8.6806       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.410       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4501       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76136       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=   6434.092     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2366 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.469        .76144E-07** at limit **
   2  norm          .10000E-03    3.5304        .12147E-07** at limit **
   3  Prefactor     .10000E-03    3.8153        .32222E-07** at limit **
   4  Prefactor     .10000E-03    2.8805       -.25691E-07** at limit **
   5  Prefactor     18.131        24.807       -.16484E-05   -.74919E-04
   6  norm          3.2472        1.5171        .54764E-07    .18410E-04
   7  norm          6.8709        4.9098        .21887E-06    .74102E-04
   8  norm          5.2090        4.6893        .11885E-05   -.16450E-02
   9  Prefactor     31.889        17.648        .24872E-05    .61052E-03
  10  norm          66.516        37.035        .73548E-06    .71236E-04
  11  Prefactor     .10000E-03    10.478        .72989E-06** at limit **
  12  norm          .10000E-03    4.0382       -.57449E-06** at limit **
  13  Prefactor     .10000E-03    2.9678       -.39325E-06** at limit **
  14  Prefactor     .10000E-03    18.867       -.25085E-07** at limit **
  15  norm          17.295        9.9955        .11479E-06    .13999E-03
  16  norm          13.660        4.4034       -.71588E-07   -.76005E-04
  17  norm          8.6808        8.4717       -.26183E-06    .47690E-03
  18  norm          .10000E-03    5.8754        .15393E-07** at limit **
  19  Prefactor     17.421        32.375        .57139E-05    .20924E-03
  20  Prefactor     .10000E-03    87.811       -.13837E-05** at limit **
  21  Normalizat    1.4501        .24566       -.24240E-06    .88868E-04
  22  Prefactor     .76131        .12795       -.78127E-06    .17079E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1306
  norm       = 3.24718
  norm       = 6.87093
  norm       = 5.20896
  Prefactor  = 31.889
  norm       = 66.5159
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 17.2953
  norm       = 13.6597
  norm       = 8.68079
  norm       = 0.0001
  Prefactor  = 17.4207
  Prefactor  = 0.0001
  Normalizat = 1.45013
  Prefactor  = 0.761314
 **********
 **   18 **HESSE 
 **********

 FCN=   6434.092     FROM HESSE     STATUS=OK           342 CALLS     2708 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.5377        .14719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.8374        .15299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8913        .13292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.131        24.808        .94046E-04   -1.4856    
   6  norm          3.2472        1.5193        .64242E-04   -1.5348    
   7  norm          6.8709        4.9436        .11650E-03   -1.5184    
   8  norm          5.2090        6.5477        .88073E-03   -1.5251    
   9  Prefactor     31.889        17.980        .70934E-04   -1.4578    
  10  norm          66.516        37.047        .49211E-04   -1.4075    
  11  Prefactor     .10000E-03    10.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.694        .30792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.204        .25502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.295        9.6658        .96335E-04   -1.4876    
  16  norm          13.660        4.4127        .91077E-04   -1.4969    
  17  norm          8.6808        8.6534        .68025E-03   -1.5119    
  18  norm          .10000E-03    5.9077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.421        32.791        .95988E-04   -1.4873    
  20  Prefactor     .10000E-03    88.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4501        .28335        .31580E-03   -.79189    
  22  Prefactor     .76131        .14669        .22278E-03   -1.0117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36377e-09
Minuit parameter uncertainties:
  1  1.64501e-05
  2  2.03542e-06
  3  6.65847e-06
  4  2.19297e-06
  5  24.8217
  6  1.5193
  7  4.94388
  8  6.54862
  9  17.9826
  10  37.0603
  11  3.94671e-05
  12  3.4974e-05
  13  0.000422427
  14  3.14145e-07
  15  9.66668
  16  4.41283
  17  8.6546
  18  1.3361e-05
  19  32.8253
  20  0.00028029
  21  0.28366
  22  0.146767
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.224e-04  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:  7.613e-01  1.468e-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.450e+00  2.837e-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: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/359376/likelihoodResults_659491201_659750401_4FGL_J1349.5-1131_daily_bin1621.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) = 6434.09253099
delta logL = -0.00038959468111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6434.092142
delta logL = -6.10246388533e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12656E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4429       1.0000          .0000       10.000    
     3 'Normalizat'    1.4503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76128       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6434.084     FROM MIGRAD    STATUS=FAILED       180 CALLS      350 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37362        1345.7        .30893E-02    .22111E-03
   2  Index         1.6311        8.9689        .50000       -.32168E-04
   3  Normalizat    1.4513        .40539        .31580E-03    .21636E-04
   4  Prefactor     .75992        .25469        .22278E-03    .31691E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6434.084     FROM SIMPLEX   STATUS=UNCHANGED    110 CALLS      460 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37362        1345.7        .37623E-03    .22111E-03
   2  Index         1.6311        8.9689        .17919E-02   -.32168E-04
   3  Normalizat    1.4513        .40539        .12237E-03    .21636E-04
   4  Prefactor     .75992        .25469        .34775E-04    .31691E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6434.084     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      493 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37362        6.1382        .12357E-03    .26680E-05
   2  Index         1.6311        2.0939        .22428E-01   -.56489E-05
   3  Normalizat    1.4513        .27159        .12632E-04    .21600E-04
   4  Prefactor     .75992        .14523        .89111E-05    .31640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.373622
  Index      = 1.63106
  Normalizat = 1.45129
  Prefactor  = 0.759925
 **********
 **   18 **HESSE 
 **********

 FCN=   6434.084     FROM HESSE     STATUS=OK            25 CALLS      518 TOTAL
                     EDM=   .99E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37362        6.5378        .49429E-05   -1.5586    
   2  Index         1.6311        2.1578        .89712E-03   -.73932    
   3  Normalizat    1.4513        .27128        .25264E-05   -.79156    
   4  Prefactor     .75992        .14506        .17822E-05   -1.0122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.8755e-13
Minuit parameter uncertainties:
  1  3.12579
  2  2.30436
  3  0.271549
  4  0.145136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359376': 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) = 6434.08369972
delta logL = 0.00844167675859

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  3.736e-01  3.126e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.631e+00  2.304e+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:  7.599e-01  1.451e-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.451e+00  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.387 -11.519

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/359376/cmap_HighResolution_659491201_659750401_4FGL_J1349.5-1131_daily_bin1621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.34e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-12-08 00:56:28.153208', job_id='359376', GAL2='0.76', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1638953788.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='8.44e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1621' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 00:56:28 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 359376: <4FGL_J1349.5-1131_daily_bin1621> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1621> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec  8 00:45:18 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 00:45:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 00:45:27 2021
Terminated at Wed Dec  8 00:56:28 2021
Results reported at Wed Dec  8 00:56:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1621 207.387 -11.5188 659491201 659750401 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 :                                   618.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            670 sec.

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

