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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin390
RA = 207.387, Dec = -11.5188
tmin = 340416001, tmax = 340675201
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='993875', job_status='RUN', time_executed='2021-09-08 14:10:37.176781', time_epoch_executed='1631135437.18' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993875

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993875/ft1_4FGL_J1349.5-1131_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993875/ft2_4FGL_J1349.5-1131_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993875/ft1_4FGL_J1349.5-1131_daily_bin390.fits outfile=/scratch/kocevski/993875/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin390.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=340416001.0 tmax=340675201.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 6.87
user 6.47
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993875/ft2_4FGL_J1349.5-1131_daily_bin390.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/993875/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin390.fits evtable="EVENTS" outfile="/scratch/kocevski/993875/ft1_filtered_4FGL_J1349.5-1131_daily_bin390.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/993875/ft1_filtered_4FGL_J1349.5-1131_daily_bin390.fits" evtable="EVENTS" scfile=/scratch/kocevski/993875/ft2_4FGL_J1349.5-1131_daily_bin390.fits sctable="SC_DATA" outfile=/scratch/kocevski/993875/ltcube_340416001_340675201_4FGL_J1349.5-1131_daily_bin390.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/993875/ft2_4FGL_J1349.5-1131_daily_bin390.fits
.....................!
real 15.81
user 15.38
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993875/ft1_filtered_4FGL_J1349.5-1131_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/993875/ft2_4FGL_J1349.5-1131_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/993875/ltcube_340416001_340675201_4FGL_J1349.5-1131_daily_bin390.fits outfile=/scratch/kocevski/993875/expmap_340416001_340675201_4FGL_J1349.5-1131_daily_bin390.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/993875/ltcube_340416001_340675201_4FGL_J1349.5-1131_daily_bin390.fits
.....................!
real 193.80
user 187.11
sys 5.72

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/993875/ft1_filtered_4FGL_J1349.5-1131_daily_bin390.fits scfile=/scratch/kocevski/993875/ft2_4FGL_J1349.5-1131_daily_bin390.fits outfile=/scratch/kocevski/993875/cmap_340416001_340675201_4FGL_J1349.5-1131_daily_bin390.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993875/ft1_filtered_4FGL_J1349.5-1131_daily_bin390.fits scfile=/scratch/kocevski/993875/ft2_4FGL_J1349.5-1131_daily_bin390.fits outfile=/scratch/kocevski/993875/cmap_HighResolution_340416001_340675201_4FGL_J1349.5-1131_daily_bin390.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.6550       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.254       1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.917       1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.847       1.0000         .10000E-03   10000.    
     6 'norm      '    .90501       1.0000         .10000E-03   10000.    
     7 'norm      '    .48871E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    11.779       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.946       1.0000         .10000E-03   10000.    
    10 'norm      '    7.4579       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11312E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    76.038       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5785       1.0000         .10000E-03   10000.    
    16 'norm      '    .10362E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    27.991       1.0000         .10000E-03   10000.    
    18 'norm      '    19.891       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.271       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89507       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2721       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=   7034.498     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2489 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9903       -.26598E-07** at limit **
   2  norm          6.6548        7.5027       -.71285E-06    .36876E-03
   3  Prefactor     26.258        16.481       -.50128E-07   -.12371E-03
   4  Prefactor     57.926        18.693       -.15971E-06   -.16099E-03
   5  Prefactor     36.943        27.886       -.18259E-05   -.61178E-04
   6  norm          .90503        1.9487        .25162E-06   -.28546E-03
   7  norm          .10005E-03    3.0854        .81380E-06** at limit **
   8  norm          11.790        10.010       -.29109E-06   -.81955E-04
   9  Prefactor     13.944        17.865        .72553E-07   -.69833E-05
  10  norm          7.4564        27.291        .16777E-06   -.51311E-05
  11  Prefactor     .10000E-03    13.127        .40837E-07** at limit **
  12  norm          .10000E-03    2.5381        .27914E-06** at limit **
  13  Prefactor     .10000E-03    7.9680        .17520E-06** at limit **
  14  Prefactor     76.085        66.876        .47470E-06    .37264E-04
  15  norm          4.5936        8.7933        .21471E-06   -.89520E-04
  16  norm          .10000E-03    2.4705        .58491E-07** at limit **
  17  norm          27.986        17.584        .47329E-07    .23220E-04
  18  norm          19.887        11.760        .42575E-07   -.52091E-04
  19  Prefactor     .10000E-03    14.450        .69490E-07** at limit **
  20  Prefactor     23.271        21.675        .70123E-07   -.75199E-06
  21  Normalizat    .89499        .31225        .13998E-05   -.84101E-04
  22  Prefactor     1.2722        .15756       -.86452E-06    .65840E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.65481
  Prefactor  = 26.2581
  Prefactor  = 57.9259
  Prefactor  = 36.9434
  norm       = 0.90503
  norm       = 0.00010005
  norm       = 11.7904
  Prefactor  = 13.9444
  norm       = 7.45639
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.0848
  norm       = 4.59365
  norm       = 0.0001
  norm       = 27.9861
  norm       = 19.8871
  Prefactor  = 0.0001
  Prefactor  = 23.2707
  Normalizat = 0.894991
  Prefactor  = 1.27218
 **********
 **   18 **HESSE 
 **********

 FCN=   7034.498     FROM HESSE     STATUS=OK           350 CALLS     2839 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9932        .16362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.6548        7.3094        .77775E-03   -1.5192    
   3  Prefactor     26.258        16.477        .78183E-04   -1.4683    
   4  Prefactor     57.926        18.687        .52715E-04   -1.4184    
   5  Prefactor     36.943        27.702        .66024E-04   -1.4492    
   6  norm          .90503        1.9058        .15513E-03   -1.5518    
   7  norm          .10005E-03    23.671        .25669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.790        9.9848        .11672E-03   -1.5021    
   9  Prefactor     13.944        17.838        .10725E-03   -1.4961    
  10  norm          7.4564        27.274        .14686E-03   -1.5162    
  11  Prefactor     .10000E-03    13.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.5377        .13008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.2171        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     76.085        66.762        .23024E-03   -1.3961    
  15  norm          4.5936        8.7114        .18812E-03   -1.5279    
  16  norm          .10000E-03    5.0673        .24852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          27.986        17.583        .75723E-04   -1.4649    
  18  norm          19.887        11.625        .89806E-04   -1.4816    
  19  Prefactor     .10000E-03    14.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.271        21.679        .83034E-04   -1.4743    
  21  Normalizat    .89499        .33353        .44860E-03   -.96636    
  22  Prefactor     1.2722        .17165        .20541E-03   -.84138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4233e-09
Minuit parameter uncertainties:
  1  2.1827e-06
  2  7.31035
  3  16.4802
  4  18.6885
  5  27.7116
  6  1.9059
  7  0.00216816
  8  9.98626
  9  17.8443
  10  27.3195
  11  1.28388e-05
  12  1.61041e-05
  13  2.10986e-05
  14  66.8275
  15  8.71384
  16  3.1251e-05
  17  17.5858
  18  11.6262
  19  1.49224e-05
  20  21.6861
  21  0.334301
  22  0.171723
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.272e+00  1.717e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  8.950e-01  3.343e-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.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993875/likelihoodResults_340416001_340675201_4FGL_J1349.5-1131_daily_bin390.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) = 7034.49874017
delta logL = -0.000581126875659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7034.49815932
delta logL = -2.76662831311e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5126       1.0000          .0000       10.000    
     3 'Normalizat'    .89477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2723       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=   7034.498     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      250 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10070E-03    38.530        .36285E-02** at limit **
   2  Index         2.5561        8.0725        .50000       -.13793E-04
   3  Normalizat    .89500        .14831E-01    .44859E-03    .11384E-03
   4  Prefactor     1.2722        .79975E-02    .20541E-03    .20981E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001007
  Index      = 2.55606
  Normalizat = 0.894996
  Prefactor  = 1.27217
 **********
 **   18 **HESSE 
 **********

 FCN=   7034.498     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10070E-03    201.47        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5561        5.6063        .50000       -.51070    
   3  Normalizat    .89500        .34566E-01    .17944E-04   -.96636    
   4  Prefactor     1.2722        .18639E-01    .41083E-04   -.84138    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29951e-08
Minuit parameter uncertainties:
  1  0.0238397
  2  409.968
  3  0.0345664
  4  0.0186394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993875': 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) = 7034.49815884
delta logL = 2.01875991479e-07

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.007e-04  2.384e-02  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.556e+00  4.100e+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:  1.272e+00  1.864e-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:  8.950e-01  3.457e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/993875/cmap_HighResolution_340416001_340675201_4FGL_J1349.5-1131_daily_bin390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.87e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-08 14:21:45.716838', job_id='993875', GAL2='1.27', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631136105.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='2.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='390' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:21:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 993875: <4FGL_J1349.5-1131_daily_bin390> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin390> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 14:10:19 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:10:25 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:10:25 2021
Terminated at Wed Sep  8 14:21:46 2021
Results reported at Wed Sep  8 14:21:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin390 207.387 -11.5188 340416001 340675201 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 :                                   663.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            687 sec.

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

