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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin369
RA = 207.387, Dec = -11.5188
tmin = 334972801, tmax = 335232001
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='993844', job_status='RUN', time_executed='2021-09-08 14:12:22.584637', time_epoch_executed='1631135542.58' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993844

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993844/ft1_4FGL_J1349.5-1131_daily_bin369.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993844/ft2_4FGL_J1349.5-1131_daily_bin369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993844/ft1_4FGL_J1349.5-1131_daily_bin369.fits outfile=/scratch/kocevski/993844/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin369.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=334972801.0 tmax=335232001.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.46
user 3.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993844/ft2_4FGL_J1349.5-1131_daily_bin369.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/993844/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin369.fits evtable="EVENTS" outfile="/scratch/kocevski/993844/ft1_filtered_4FGL_J1349.5-1131_daily_bin369.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.52
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993844/ft1_filtered_4FGL_J1349.5-1131_daily_bin369.fits" evtable="EVENTS" scfile=/scratch/kocevski/993844/ft2_4FGL_J1349.5-1131_daily_bin369.fits sctable="SC_DATA" outfile=/scratch/kocevski/993844/ltcube_334972801_335232001_4FGL_J1349.5-1131_daily_bin369.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/993844/ft2_4FGL_J1349.5-1131_daily_bin369.fits
.....................!
real 16.62
user 16.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993844/ft1_filtered_4FGL_J1349.5-1131_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/993844/ft2_4FGL_J1349.5-1131_daily_bin369.fits sctable="SC_DATA" expcube=/scratch/kocevski/993844/ltcube_334972801_335232001_4FGL_J1349.5-1131_daily_bin369.fits outfile=/scratch/kocevski/993844/expmap_334972801_335232001_4FGL_J1349.5-1131_daily_bin369.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/993844/ltcube_334972801_335232001_4FGL_J1349.5-1131_daily_bin369.fits
.....................!
real 192.48
user 187.28
sys 4.48

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/993844/ft1_filtered_4FGL_J1349.5-1131_daily_bin369.fits scfile=/scratch/kocevski/993844/ft2_4FGL_J1349.5-1131_daily_bin369.fits outfile=/scratch/kocevski/993844/cmap_334972801_335232001_4FGL_J1349.5-1131_daily_bin369.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993844/ft1_filtered_4FGL_J1349.5-1131_daily_bin369.fits scfile=/scratch/kocevski/993844/ft2_4FGL_J1349.5-1131_daily_bin369.fits outfile=/scratch/kocevski/993844/cmap_HighResolution_334972801_335232001_4FGL_J1349.5-1131_daily_bin369.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/993844/ft1_filtered_4FGL_J1349.5-1131_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/993844/ft2_4FGL_J1349.5-1131_daily_bin369.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993844/Model_4FGL_J1349.5-1131_daily_bin369.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/993844/ft1_filtered_4FGL_J1349.5-1131_daily_bin369.fits.....................!
real 66.09
user 63.59
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4509       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7137       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.541       1.0000         .10000E-03   10000.    
     6 'norm      '    1.9233       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9063       1.0000         .10000E-03   10000.    
     8 'norm      '    4.2860       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.303       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13476E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1373       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5280       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1473       1.0000         .10000E-03   10000.    
    17 'norm      '    18.350       1.0000         .10000E-03   10000.    
    18 'norm      '    12.629       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30800E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .67366       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2697       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=   8610.482     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2736 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4504        5.1917        .25872E-06   -.35730E-04
   2  norm          .10000E-03    3.5151        .15212E-07** at limit **
   3  Prefactor     .10000E-03    1.7525       -.94824E-07** at limit **
   4  Prefactor     3.7130        6.9796        .40951E-05    .20666E-03
   5  Prefactor     17.553        15.596        .14572E-05   -.38606E-04
   6  norm          1.9232        1.3083        .27657E-07    .37688E-04
   7  norm          1.9038        2.8551       -.57240E-06   -.26226E-03
   8  norm          4.2899        6.1115        .95586E-08    .14784E-03
   9  Prefactor     11.295        12.813       -.34491E-06    .42757E-04
  10  norm          .10000E-03    21.473       -.15322E-06** at limit **
  11  Prefactor     .10007E-03    7.9598       -.22453E-05** at limit **
  12  norm          .10000E-03    1.3977       -.11703E-07** at limit **
  13  Prefactor     1.1258        6.0566        .29774E-06   -.98433E-04
  14  Prefactor     .10000E-03    11.687        .89785E-08** at limit **
  15  norm          1.5366        6.9539        .12245E-05    .12362E-03
  16  norm          3.1468        2.8022        .15802E-06    .23161E-04
  17  norm          18.351        13.753        .11331E-06   -.40744E-05
  18  norm          12.629        6.9330        .45553E-07    .10639E-04
  19  Prefactor     .10000E-03    3.9992        .21445E-07** at limit **
  20  Prefactor     .10022E-03    14.376       -.69095E-06** at limit **
  21  Normalizat    .67392        .22431       -.22086E-05    .82616E-04
  22  Prefactor     1.2695        .11755        .87278E-07    .39940E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.45036
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.71296
  Prefactor  = 17.5526
  norm       = 1.92324
  norm       = 1.90381
  norm       = 4.28989
  Prefactor  = 11.295
  norm       = 0.0001
  Prefactor  = 0.000100065
  norm       = 0.0001
  Prefactor  = 1.12578
  Prefactor  = 0.0001
  norm       = 1.53658
  norm       = 3.14677
  norm       = 18.3509
  norm       = 12.6288
  Prefactor  = 0.0001
  Prefactor  = 0.000100218
  Normalizat = 0.673917
  Prefactor  = 1.26955
 **********
 **   18 **HESSE 
 **********

 FCN=   8610.482     FROM HESSE     STATUS=OK           360 CALLS     3096 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4504        5.1787        .21771E-03   -1.5336    
   2  norm          .10000E-03    3.5197        .16991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.7548        .11999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7130        7.0871        .10478E-02   -1.5323    
   5  Prefactor     17.553        15.569        .95629E-04   -1.4870    
   6  norm          1.9232        1.2992        .82919E-04   -1.5431    
   7  norm          1.9038        2.8124        .15370E-03   -1.5432    
   8  norm          4.2899        6.0019        .19460E-03   -1.5294    
   9  Prefactor     11.295        11.691        .11916E-03   -1.5036    
  10  norm          .10000E-03    21.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10007E-03    33.652        .41402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.4120        .10711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1258        5.0548        .34844E-03   -1.5496    
  14  Prefactor     .10000E-03    11.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5366        6.0178        .34537E-03   -1.5460    
  16  norm          3.1468        2.7871        .13675E-03   -1.5353    
  17  norm          18.351        13.752        .93497E-04   -1.4851    
  18  norm          12.629        6.9252        .11272E-03   -1.4997    
  19  Prefactor     .10000E-03    4.0013        .18123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10022E-03    16.319        .10878       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .67392        .24119        .41156E-03   -1.0493    
  22  Prefactor     1.2695        .12943        .17468E-03   -.84217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1564e-09
Minuit parameter uncertainties:
  1  5.17942
  2  3.32386e-07
  3  7.85371e-06
  4  7.08872
  5  15.5722
  6  1.29924
  7  2.81262
  8  6.00275
  9  11.6933
  10  2.63946e-05
  11  0.00296929
  12  7.63153e-07
  13  4.77145
  14  2.12964e-06
  15  6.02012
  16  2.7872
  17  13.7542
  18  6.92562
  19  1.67688e-06
  20  0.00377592
  21  0.241564
  22  0.129461
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.126e+00  4.771e+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:  1.270e+00  1.295e-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:  6.739e-01  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 207.387 -11.519
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993844/likelihoodResults_334972801_335232001_4FGL_J1349.5-1131_daily_bin369.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): 0
logL (Free Index) = 8609.37492117
delta logL = 1.10671979338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8609.22756205
delta logL = 1.25407891496

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     '    8.8512       1.0000          .0000       10.000    
     3 'Normalizat'    .59494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3010       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=   8609.228     FROM MIGRAD    STATUS=CONVERGED    136 CALLS      501 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .29471E-02    .33088E-03** at limit **
   2  Index         8.8515        7.4698        .25143        .18909E-04
   3  Normalizat    .59476        .52147E-01    .98443E-01    .68938E-04
   4  Prefactor     1.3011        .29351E-01    .32592E-01   -.18052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.85148
  Normalizat = 0.594759
  Prefactor  = 1.30107
 **********
 **   18 **HESSE 
 **********

 FCN=   8609.228     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      540 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .15870E-01    .18194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.8515        8.7669        .10854E-02    .87930    
   3  Normalizat    .59476        .11481        .43626E-03   -1.0821    
   4  Prefactor     1.3011        .65052E-01    .17281E-03   -.83275    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.14283e-08
Minuit parameter uncertainties:
  1  2.7738e-07
  2  5.44304
  3  0.114853
  4  0.0650564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993844': 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) = 8609.22755759
delta logL = 1.25408337329

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.774e-07  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  8.851e+00  5.443e+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:  1.301e+00  6.506e-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:  5.948e-01  1.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.74
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 8.85 +/- 5.44
Photon Flux (Free Index): 6.14e-08 +/- 6.10e-07
Energy Flux (Free Index): 7.00e-06 +/- 6.92e-05

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/993844/cmap_HighResolution_334972801_335232001_4FGL_J1349.5-1131_daily_bin369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.32e-03', comment='SUCCESS', energy_flux2='7.00e-06', dlogl='1.25e+00', photon_flux2='6.14e-08', job_status='DONE', time_completed='2021-09-08 14:25:24.624240', photon_index_error2='5.44', photon_index2='8.85', ts='0.08', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='6.92e-05', EG='0.67', time_epoch_completed='1631136324.62', return_code='0', job_id='993844', GAL2='1.30', EG2='0.59', return_code2='102', photon_flux_error2='6.10e-07', ts2='2.74', photon_index='2.49' WHERE bin_id='369' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:25:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 993844: <4FGL_J1349.5-1131_daily_bin369> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin369 207.387 -11.5188 334972801 335232001 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 :                                   778.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            908 sec.

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

