/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 146 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1349.5-1131_daily_bin315
RA = 207.387, Dec = -11.5188
tmin = 320976001, tmax = 321235201
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='992707', job_status='RUN', time_executed='2021-09-08 14:08:21.781443', time_epoch_executed='1631135301.78' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992707/ft1_4FGL_J1349.5-1131_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992707/ft2_4FGL_J1349.5-1131_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992707/ft1_4FGL_J1349.5-1131_daily_bin315.fits outfile=/scratch/kocevski/992707/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin315.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=320976001.0 tmax=321235201.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.52
user 3.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992707/ft1_filtered_4FGL_J1349.5-1131_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/992707/ft2_4FGL_J1349.5-1131_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/992707/ltcube_320976001_321235201_4FGL_J1349.5-1131_daily_bin315.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/992707/ft2_4FGL_J1349.5-1131_daily_bin315.fits
.....................!
real 15.75
user 15.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992707/ft1_filtered_4FGL_J1349.5-1131_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/992707/ft2_4FGL_J1349.5-1131_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/992707/ltcube_320976001_321235201_4FGL_J1349.5-1131_daily_bin315.fits outfile=/scratch/kocevski/992707/expmap_320976001_321235201_4FGL_J1349.5-1131_daily_bin315.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/992707/ltcube_320976001_321235201_4FGL_J1349.5-1131_daily_bin315.fits
.....................!
real 192.66
user 187.16
sys 5.00

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1349.5-1131 @ 207.387 -11.5188

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/992707/ft1_filtered_4FGL_J1349.5-1131_daily_bin315.fits scfile=/scratch/kocevski/992707/ft2_4FGL_J1349.5-1131_daily_bin315.fits outfile=/scratch/kocevski/992707/cmap_320976001_321235201_4FGL_J1349.5-1131_daily_bin315.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.55
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992707/ft1_filtered_4FGL_J1349.5-1131_daily_bin315.fits scfile=/scratch/kocevski/992707/ft2_4FGL_J1349.5-1131_daily_bin315.fits outfile=/scratch/kocevski/992707/cmap_HighResolution_320976001_321235201_4FGL_J1349.5-1131_daily_bin315.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=207.387 yref=-11.5188 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/992707/ft1_filtered_4FGL_J1349.5-1131_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/992707/ft2_4FGL_J1349.5-1131_daily_bin315.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/992707/Model_4FGL_J1349.5-1131_daily_bin315.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/992707/ft1_filtered_4FGL_J1349.5-1131_daily_bin315.fits.....................!
real 65.33
user 63.95
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1750       1.0000         .10000E-03   10000.    
     2 'norm      '    3.7276       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2389       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .37195       1.0000         .10000E-03   10000.    
     8 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2401       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3754       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.864       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.2842       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0739       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.719       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98621       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98876       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=   8333.938     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2374 TOTAL
                     EDM=   .93E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1746        8.3021       -.59357E-07    .20311E-05
   2  norm          3.7276        5.1135       -.15282E-07   -.88454E-06
   3  Prefactor     .10000E-03    5.1085       -.27774E-07** at limit **
   4  Prefactor     6.2389        7.9291       -.14052E-06    .41180E-04
   5  Prefactor     .10000E-03    10.129        .17562E-06** at limit **
   6  norm          .10000E-03    .36376       -.39246E-07** at limit **
   7  norm          .37201        2.6256       -.67670E-06    .18275E-04
   8  norm          .10000E-03    2.0481        .64195E-07** at limit **
   9  Prefactor     4.2401        8.7405       -.74889E-07   -.75951E-05
  10  norm          .10000E-03    14.601       -.41348E-08** at limit **
  11  Prefactor     2.3760        4.8910        .91769E-08   -.34394E-04
  12  norm          5.4747        4.4518        .20576E-06    .39539E-04
  13  Prefactor     .10000E-03    .92908        .33357E-07** at limit **
  14  Prefactor     36.858        40.058       -.80602E-05    .66266E-05
  15  norm          .10000E-03    1.6458        .10346E-07** at limit **
  16  norm          5.2841        2.7382       -.73160E-07    .16739E-04
  17  norm          .10000E-03    2.8607        .31717E-08** at limit **
  18  norm          1.0747        1.2845        .55031E-07   -.12336E-03
  19  Prefactor     .10000E-03    4.3371        .40403E-07** at limit **
  20  Prefactor     14.719        16.814       -.35315E-06    .22014E-05
  21  Normalizat    .98630        .19189        .79750E-06    .42542E-04
  22  Prefactor     .98872        .10153        .25076E-06    .59954E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.17462
  norm       = 3.72757
  Prefactor  = 0.0001
  Prefactor  = 6.23893
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.372013
  norm       = 0.0001
  Prefactor  = 4.24005
  norm       = 0.0001
  Prefactor  = 2.37602
  norm       = 5.47469
  Prefactor  = 0.0001
  Prefactor  = 36.8585
  norm       = 0.0001
  norm       = 5.28412
  norm       = 0.0001
  norm       = 1.07471
  Prefactor  = 0.0001
  Prefactor  = 14.7187
  Normalizat = 0.9863
  Prefactor  = 0.988722
 **********
 **   18 **HESSE 
 **********

 FCN=   8333.938     FROM HESSE     STATUS=OK           346 CALLS     2720 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1746        8.3043        .70110E-03   -1.5136    
   2  norm          3.7276        5.1073        .10457E-02   -1.5322    
   3  Prefactor     .10000E-03    5.2016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2389        8.0107        .16071E-03   -1.5208    
   5  Prefactor     .10000E-03    10.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .51368        .10651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .37201        2.6501        .27934E-03   -1.5586    
   8  norm          .10000E-03    2.0549        .12730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2401        8.7300        .97841E-03   -1.5296    
  10  norm          .10000E-03    14.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3760        4.9531        .13291E-02   -1.5400    
  12  norm          5.4747        4.4511        .16512E-03   -1.5240    
  13  Prefactor     .10000E-03    .93220        .85927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.858        40.049        .66009E-04   -1.4493    
  15  norm          .10000E-03    1.6506        .11436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.2841        2.7766        .10242E-03   -1.5248    
  17  norm          .10000E-03    2.8609        .15080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0747        7.8844        .23368E-02   -1.5501    
  19  Prefactor     .10000E-03    4.3413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.719        16.823        .10440E-03   -1.4940    
  21  Normalizat    .98630        .22673        .32054E-03   -.93491    
  22  Prefactor     .98872        .12078        .17675E-03   -.93106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.274e-10
Minuit parameter uncertainties:
  1  8.30546
  2  5.10794
  3  2.16253e-06
  4  8.01211
  5  4.61975e-05
  6  1.95526e-06
  7  1.9857
  8  8.4481e-06
  9  8.73261
  10  3.78945e-06
  11  4.95399
  12  4.4514
  13  2.07801e-06
  14  40.0777
  15  8.42814e-07
  16  2.77668
  17  2.95125e-07
  18  5.82267
  19  1.25967e-06
  20  16.8279
  21  0.226956
  22  0.120815
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.078e-06  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.887e-01  1.208e-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:  9.863e-01  2.270e-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: 4.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992707/likelihoodResults_320976001_321235201_4FGL_J1349.5-1131_daily_bin315.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) = 8333.94310604
delta logL = -0.00507328153253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8333.93803255
delta logL = 2.02684532269e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4796       1.0000          .0000       10.000    
     3 'Normalizat'    .98627       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98869       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=   8333.938     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      248 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8935        .86682E-02** at limit **
   2  Index         2.0033        5.6607        .50000        .35466E-06
   3  Normalizat    .98631        .13674E-01    .32054E-03    .28976E-02
   4  Prefactor     .98872        .75974E-02    .17675E-03    .51740E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0033
  Normalizat = 0.986307
  Prefactor  = 0.988725
 **********
 **   18 **HESSE 
 **********

 FCN=   8333.938     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    79.140        .93278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0033        8.7942        .50000       -.64268    
   3  Normalizat    .98631        .44228E-01    .64108E-04   -.93491    
   4  Prefactor     .98872        .24574E-01    .35350E-04   -.93106    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.72137e-09
Minuit parameter uncertainties:
  1  1.78582e-05
  2  542.774
  3  0.0442295
  4  0.024574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992707': 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) = 8333.93802474
delta logL = 8.01743590273e-06

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.786e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.003e+00  5.428e+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.887e-01  2.457e-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:  9.863e-01  4.423e-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/992707/cmap_HighResolution_320976001_321235201_4FGL_J1349.5-1131_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-03', job_status='DONE', photon_flux_upper_limit='4.84e-08', time_completed='2021-09-08 14:20:12.889862', job_id='992707', GAL2='0.99', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631136012.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='8.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='315' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:20:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 992707: <4FGL_J1349.5-1131_daily_bin315> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin315> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 14:05:33 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:05:44 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:05:44 2021
Terminated at Wed Sep  8 14:20:13 2021
Results reported at Wed Sep  8 14:20:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin315 207.387 -11.5188 320976001 321235201 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 :                                   708.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            880 sec.

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

