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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1038
RA = 207.387, Dec = -11.5188
tmin = 508377601, tmax = 508636801
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='997918', job_status='RUN', time_executed='2021-09-08 14:26:33.447351', time_epoch_executed='1631136393.45' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1038'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997918

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997918/ft1_4FGL_J1349.5-1131_daily_bin1038.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997918/ft2_4FGL_J1349.5-1131_daily_bin1038.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997918/ft1_4FGL_J1349.5-1131_daily_bin1038.fits outfile=/scratch/kocevski/997918/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1038.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=508377601.0 tmax=508636801.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.70
user 3.43
sys 0.24

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997918/ft1_filtered_4FGL_J1349.5-1131_daily_bin1038.fits" evtable="EVENTS" scfile=/scratch/kocevski/997918/ft2_4FGL_J1349.5-1131_daily_bin1038.fits sctable="SC_DATA" outfile=/scratch/kocevski/997918/ltcube_508377601_508636801_4FGL_J1349.5-1131_daily_bin1038.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/997918/ft2_4FGL_J1349.5-1131_daily_bin1038.fits
.....................!
real 17.37
user 16.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997918/ft1_filtered_4FGL_J1349.5-1131_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/997918/ft2_4FGL_J1349.5-1131_daily_bin1038.fits sctable="SC_DATA" expcube=/scratch/kocevski/997918/ltcube_508377601_508636801_4FGL_J1349.5-1131_daily_bin1038.fits outfile=/scratch/kocevski/997918/expmap_508377601_508636801_4FGL_J1349.5-1131_daily_bin1038.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/997918/ltcube_508377601_508636801_4FGL_J1349.5-1131_daily_bin1038.fits
.....................!
real 193.12
user 187.57
sys 4.75

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/997918/ft1_filtered_4FGL_J1349.5-1131_daily_bin1038.fits scfile=/scratch/kocevski/997918/ft2_4FGL_J1349.5-1131_daily_bin1038.fits outfile=/scratch/kocevski/997918/cmap_508377601_508636801_4FGL_J1349.5-1131_daily_bin1038.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.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997918/ft1_filtered_4FGL_J1349.5-1131_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/997918/ft2_4FGL_J1349.5-1131_daily_bin1038.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997918/Model_4FGL_J1349.5-1131_daily_bin1038.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/997918/ft1_filtered_4FGL_J1349.5-1131_daily_bin1038.fits.....................!
real 72.46
user 70.98
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    43.361       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3086       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10960E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.862       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3324       1.0000         .10000E-03   10000.    
     7 'norm      '    7.7025       1.0000         .10000E-03   10000.    
     8 'norm      '    .90567       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19988E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .28363E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6399       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.1443       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1138       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96171       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9785.985     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2113 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          43.360        14.718         .0000        .15271E-03
   2  norm          .10000E-03    5.7221         .0000    ** at limit **
   3  Prefactor     5.3081        5.7330         .0000       -.55960E-03
   4  Prefactor     .10000E-03    3.1645         .0000    ** at limit **
   5  Prefactor     17.859        23.073         .0000       -.33753E-04
   6  norm          1.3323        1.1660         .0000        .78578E-03
   7  norm          7.7002        5.1590         .0000        .34334E-03
   8  norm          .90845        5.6367         .0000        .20128E-02
   9  Prefactor     .10000E-03    5.0937         .0000    ** at limit **
  10  norm          .10000E-03    54.247         .0000    ** at limit **
  11  Prefactor     .10000E-03    2.8442         .0000    ** at limit **
  12  norm          .10000E-03    1.5729         .0000    ** at limit **
  13  Prefactor     .10000E-03    2.7252         .0000    ** at limit **
  14  Prefactor     .10000E-03    16.620         .0000    ** at limit **
  15  norm          2.6395        2.8320         .0000       -.13068E-03
  16  norm          .10000E-03    .58803         .0000    ** at limit **
  17  norm          .10000E-03    3.3011         .0000    ** at limit **
  18  norm          4.1436        5.0810         .0000        .97737E-02
  19  Prefactor     .10000E-03    10.320         .0000    ** at limit **
  20  Prefactor     .10000E-03    4.4344         .0000    ** at limit **
  21  Normalizat    1.1137        .17817         .0000        .34889E-04
  22  Prefactor     .96181        .93106E-01     .0000        .22090E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 43.3605
  norm       = 0.0001
  Prefactor  = 5.30806
  Prefactor  = 0.0001
  Prefactor  = 17.8594
  norm       = 1.33228
  norm       = 7.7002
  norm       = 0.908453
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.6395
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.14361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11371
  Prefactor  = 0.961815
 **********
 **   18 **HESSE 
 **********

 FCN=   9785.985     FROM HESSE     STATUS=OK           352 CALLS     2465 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          43.360        14.723        .60881E-04   -1.4390    
   2  norm          .10000E-03    5.7721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3081        5.7245        .17444E-03   -1.5247    
   4  Prefactor     .10000E-03    6.2510        .55655E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.859        23.137        .94767E-04   -1.4863    
   6  norm          1.3323        1.1521        .95054E-04   -1.5477    
   7  norm          7.7002        5.1131        .11743E-03   -1.5153    
   8  norm          .90845        5.2550        .40213E-03   -1.5517    
   9  Prefactor     .10000E-03    37.496        .42239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    54.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8563        .16281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.5687        .23701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8225        .31836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6395        2.8325        .16756E-03   -1.5383    
  16  norm          .10000E-03    .59499        .74019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3037        .17553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.1436        5.0703        .98999E-03   -1.5301    
  19  Prefactor     .10000E-03    10.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.4365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1137        .20836        .31405E-03   -.89313    
  22  Prefactor     .96181        .10899        .18293E-03   -.94013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36473e-10
Minuit parameter uncertainties:
  1  14.7247
  2  7.2419e-06
  3  5.72513
  4  9.0458e-05
  5  23.1487
  6  1.15208
  7  5.11337
  8  4.3702
  9  7.37479e-05
  10  6.12477e-05
  11  8.41316e-07
  12  2.46987e-05
  13  4.28243e-07
  14  1.40314e-05
  15  2.8326
  16  5.05237e-07
  17  7.2456e-07
  18  5.07081
  19  1.28221e-05
  20  6.44057e-06
  21  0.208516
  22  0.10902
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.282e-07  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.618e-01  1.090e-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.114e+00  2.085e-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: 6.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/997918/likelihoodResults_508377601_508636801_4FGL_J1349.5-1131_daily_bin1038.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) = 9785.98700089
delta logL = -0.00169157697746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9785.98530934
delta logL = -2.93566699838e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5054       1.0000          .0000       10.000    
     3 'Normalizat'    1.1137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96185       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9785.985     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      249 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10100E-03    25.592        .31963E-02** at limit **
   2  Index         2.5690        6.0189        .50000       -.28213E-04
   3  Normalizat    1.1137        .13629E-01    .31405E-03    .27295E-04
   4  Prefactor     .96181        .74824E-02    .18293E-03    .23616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101003
  Index      = 2.56899
  Normalizat = 1.11371
  Prefactor  = 0.961815
 **********
 **   18 **HESSE 
 **********

 FCN=   9785.985     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10100E-03    157.47        .63926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5690        6.3097        .50000       -.50774    
   3  Normalizat    1.1137        .35660E-01    .12562E-04   -.89313    
   4  Prefactor     .96181        .19575E-01    .73172E-05   -.94013    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08262e-07
Minuit parameter uncertainties:
  1  0.0251984
  2  629.029
  3  0.0356605
  4  0.0195747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997918': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9785.98530893
delta logL = 3.79597622668e-07

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.010e-04  2.520e-02  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.569e+00  6.290e+02  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.618e-01  1.957e-02  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.114e+00  3.566e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/997918/cmap_HighResolution_508377601_508636801_4FGL_J1349.5-1131_daily_bin1038.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.71e-08', time_completed='2021-09-08 14:39:49.100672', job_id='997918', GAL2='0.96', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1631137189.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1038' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:39:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 997918: <4FGL_J1349.5-1131_daily_bin1038> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1038 207.387 -11.5188 508377601 508636801 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 :                                   762.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             302.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            871 sec.

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

