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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin589
RA = 207.387, Dec = -11.5188
tmin = 391996801, tmax = 392256001
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='995268', job_status='RUN', time_executed='2021-09-08 14:17:45.457327', time_epoch_executed='1631135865.46' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995268

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995268/ft1_4FGL_J1349.5-1131_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995268/ft2_4FGL_J1349.5-1131_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995268/ft1_4FGL_J1349.5-1131_daily_bin589.fits outfile=/scratch/kocevski/995268/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin589.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=391996801.0 tmax=392256001.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 5.58
user 5.25
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995268/ft1_filtered_4FGL_J1349.5-1131_daily_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/995268/ft2_4FGL_J1349.5-1131_daily_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/995268/ltcube_391996801_392256001_4FGL_J1349.5-1131_daily_bin589.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/995268/ft2_4FGL_J1349.5-1131_daily_bin589.fits
.....................!
real 16.92
user 16.03
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995268/ft1_filtered_4FGL_J1349.5-1131_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/995268/ft2_4FGL_J1349.5-1131_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/995268/ltcube_391996801_392256001_4FGL_J1349.5-1131_daily_bin589.fits outfile=/scratch/kocevski/995268/expmap_391996801_392256001_4FGL_J1349.5-1131_daily_bin589.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/995268/ltcube_391996801_392256001_4FGL_J1349.5-1131_daily_bin589.fits
.....................!
real 195.61
user 189.66
sys 5.21

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/995268/ft1_filtered_4FGL_J1349.5-1131_daily_bin589.fits scfile=/scratch/kocevski/995268/ft2_4FGL_J1349.5-1131_daily_bin589.fits outfile=/scratch/kocevski/995268/cmap_391996801_392256001_4FGL_J1349.5-1131_daily_bin589.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.56
user 0.39
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/995268/ft1_filtered_4FGL_J1349.5-1131_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/995268/ft2_4FGL_J1349.5-1131_daily_bin589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/995268/Model_4FGL_J1349.5-1131_daily_bin589.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/995268/ft1_filtered_4FGL_J1349.5-1131_daily_bin589.fits.....................!
real 50.60
user 48.75
sys 1.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.538       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.887       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .26013       1.0000         .10000E-03   10000.    
     7 'norm      '    .71221E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    15.890       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5731       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30289       1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.599       1.0000         .10000E-03   10000.    
    15 'norm      '    9.4533       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8227       1.0000         .10000E-03   10000.    
    17 'norm      '    7.4514       1.0000         .10000E-03   10000.    
    18 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.757       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3800       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0116       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97622       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=   5950.777     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2435 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.538        11.274       -.74314E-07    .48765E-05
   2  norm          .10000E-03    8.2404        .94880E-06** at limit **
   3  Prefactor     14.899        11.906       -.22161E-06    .87292E-04
   4  Prefactor     .10000E-03    7.3597       -.17674E-07** at limit **
   5  Prefactor     .10000E-03    21.922        .19047E-06** at limit **
   6  norm          .26462        1.1488        .21666E-06   -.17598E-03
   7  norm          .10005E-03    2.4513       -.18896E-06** at limit **
   8  norm          15.983        9.5221        .10202E-06    .39667E-03
   9  Prefactor     .10000E-03    8.3835       -.86458E-06** at limit **
  10  norm          .10000E-03    11.544        .61304E-08** at limit **
  11  Prefactor     5.5748        13.244        .67840E-06    .18424E-03
  12  norm          .10000E-03    2.7954       -.11041E-06** at limit **
  13  Prefactor     .27369        4.9033        .51120E-06   -.35128E-03
  14  Prefactor     57.586        50.295        .16155E-05    .48924E-04
  15  norm          9.4629        9.1201        .16788E-05    .83765E-03
  16  norm          3.8219        2.4137        .26448E-07    .20898E-03
  17  norm          7.4512        7.3446        .13177E-07   -.41331E-05
  18  norm          .10000E-03    6.7243        .58724E-07** at limit **
  19  Prefactor     15.746        22.197       -.28942E-06    .58823E-04
  20  Prefactor     1.3745        93.866        .20174E-04   -.58033E-04
  21  Normalizat    1.0118        .24077        .37555E-06    .34630E-03
  22  Prefactor     .97622        .12379       -.27722E-06    .66725E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.5378
  norm       = 0.0001
  Prefactor  = 14.899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.264622
  norm       = 0.00010005
  norm       = 15.9834
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.5748
  norm       = 0.0001
  Prefactor  = 0.273692
  Prefactor  = 57.5859
  norm       = 9.46294
  norm       = 3.82192
  norm       = 7.45118
  norm       = 0.0001
  Prefactor  = 15.7464
  Prefactor  = 1.37447
  Normalizat = 1.01184
  Prefactor  = 0.976223
 **********
 **   18 **HESSE 
 **********

 FCN=   5950.777     FROM HESSE     STATUS=OK           356 CALLS     2791 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.538        11.276        .10161E-03   -1.4919    
   2  norm          .10000E-03    8.1644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.899        11.906        .10381E-03   -1.4936    
   4  Prefactor     .10000E-03    7.4355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .26462        1.9959        .15098E-02   -1.5605    
   7  norm          .10005E-03    9.1100        .34134E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.983        10.387        .10048E-03   -1.4908    
   9  Prefactor     .10000E-03    8.2808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    11.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.5748        13.188        .17018E-03   -1.5236    
  12  norm          .10000E-03    2.8248        .12594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .27369        61.310        .26462E-02   -1.5603    
  14  Prefactor     57.586        50.284        .52860E-04   -1.4189    
  15  norm          9.4629        10.607        .13034E-03   -1.5093    
  16  norm          3.8219        2.4141        .91455E-04   -1.5317    
  17  norm          7.4512        7.3485        .14692E-03   -1.5162    
  18  norm          .10000E-03    6.8328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.746        22.187        .10090E-03   -1.4914    
  20  Prefactor     1.3745        95.286        .18528E-02   -1.5473    
  21  Normalizat    1.0118        .27606        .33573E-03   -.92635    
  22  Prefactor     .97622        .14415        .18580E-03   -.93526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65488e-08
Minuit parameter uncertainties:
  1  11.2774
  2  9.53941e-05
  3  11.9082
  4  1.1161e-05
  5  2.72829e-05
  6  1.4533
  7  0.00135548
  8  10.3879
  9  8.44223e-05
  10  3.15653e-06
  11  13.1944
  12  1.09697e-05
  13  8.19973
  14  50.3216
  15  10.6093
  16  2.41411
  17  7.34941
  18  5.93618e-06
  19  22.1983
  20  22.9254
  21  0.276452
  22  0.144203
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.737e-01  8.200e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.494e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.359e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.762e-01  1.442e-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.012e+00  2.765e-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.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995268/likelihoodResults_391996801_392256001_4FGL_J1349.5-1131_daily_bin589.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) = 5950.73692218
delta logL = 0.0397466914428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5950.52990238
delta logL = 0.246766491125

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     '    8.5960       1.0000          .0000       10.000    
     3 'Normalizat'    .97066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99142       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=   5950.530     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      385 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .92349E-02    .29895E-03** at limit **
   2  Index         8.5941        8.4847        .31006        .11783E-03
   3  Normalizat    .97078        .51976E-01    .77238E-01    .28293E-03
   4  Prefactor     .99127        .28270E-01    .46160E-01   -.58933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.59408
  Normalizat = 0.970784
  Prefactor  = 0.991271
 **********
 **   18 **HESSE 
 **********

 FCN=   5950.530     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      424 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .24704E-01    .27262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.5941        9.0486        .14534E-01    .80210    
   3  Normalizat    .97078        .95645E-01    .34183E-03   -.94016    
   4  Prefactor     .99127        .52242E-01    .18454E-03   -.93021    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.13796e-09
Minuit parameter uncertainties:
  1  5.46361e-07
  2  9.8109
  3  0.0956623
  4  0.0522443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995268': 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) = 5950.52989755
delta logL = 0.246771322347

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.464e-07  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  8.594e+00  9.811e+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:  9.913e-01  5.224e-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.708e-01  9.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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/995268/cmap_HighResolution_391996801_392256001_4FGL_J1349.5-1131_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2021-09-08 14:28:08.405597', job_id='995268', GAL2='0.99', fit_tolerance='1e-08', EG2='0.97', EG='1.01', time_epoch_completed='1631136488.41', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.47e-01', ts2='0.52', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='589' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:28:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 995268: <4FGL_J1349.5-1131_daily_bin589> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin589> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 14:15:29 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:15:39 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:15:39 2021
Terminated at Wed Sep  8 14:28:09 2021
Results reported at Wed Sep  8 14:28:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin589 207.387 -11.5188 391996801 392256001 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 :                                   620.03 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             278.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            760 sec.

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

