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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1420
RA = 207.387, Dec = -11.5188
tmin = 607392001, tmax = 607651201
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='999196', job_status='RUN', time_executed='2021-09-08 14:32:51.959909', time_epoch_executed='1631136771.96' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999196/ft1_4FGL_J1349.5-1131_daily_bin1420.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999196/ft2_4FGL_J1349.5-1131_daily_bin1420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999196/ft1_4FGL_J1349.5-1131_daily_bin1420.fits outfile=/scratch/kocevski/999196/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1420.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=607392001.0 tmax=607651201.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.30
user 5.06
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999196/ft1_filtered_4FGL_J1349.5-1131_daily_bin1420.fits" evtable="EVENTS" scfile=/scratch/kocevski/999196/ft2_4FGL_J1349.5-1131_daily_bin1420.fits sctable="SC_DATA" outfile=/scratch/kocevski/999196/ltcube_607392001_607651201_4FGL_J1349.5-1131_daily_bin1420.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/999196/ft2_4FGL_J1349.5-1131_daily_bin1420.fits
.....................!
real 14.36
user 13.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999196/ft1_filtered_4FGL_J1349.5-1131_daily_bin1420.fits evtable="EVENTS" scfile=/scratch/kocevski/999196/ft2_4FGL_J1349.5-1131_daily_bin1420.fits sctable="SC_DATA" expcube=/scratch/kocevski/999196/ltcube_607392001_607651201_4FGL_J1349.5-1131_daily_bin1420.fits outfile=/scratch/kocevski/999196/expmap_607392001_607651201_4FGL_J1349.5-1131_daily_bin1420.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/999196/ltcube_607392001_607651201_4FGL_J1349.5-1131_daily_bin1420.fits
.....................!
real 191.18
user 186.13
sys 4.64

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/999196/ft1_filtered_4FGL_J1349.5-1131_daily_bin1420.fits scfile=/scratch/kocevski/999196/ft2_4FGL_J1349.5-1131_daily_bin1420.fits outfile=/scratch/kocevski/999196/cmap_607392001_607651201_4FGL_J1349.5-1131_daily_bin1420.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999196/ft1_filtered_4FGL_J1349.5-1131_daily_bin1420.fits scfile=/scratch/kocevski/999196/ft2_4FGL_J1349.5-1131_daily_bin1420.fits outfile=/scratch/kocevski/999196/cmap_HighResolution_607392001_607651201_4FGL_J1349.5-1131_daily_bin1420.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/999196/ft1_filtered_4FGL_J1349.5-1131_daily_bin1420.fits evtable="EVENTS" scfile=/scratch/kocevski/999196/ft2_4FGL_J1349.5-1131_daily_bin1420.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/999196/Model_4FGL_J1349.5-1131_daily_bin1420.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/999196/ft1_filtered_4FGL_J1349.5-1131_daily_bin1420.fits.....................!
real 46.88
user 45.50
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0273       1.0000         .10000E-03   10000.    
     2 'norm      '    8.1342       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .17376E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    21.696       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5154       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10097E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5208       1.0000         .10000E-03   10000.    
    17 'norm      '    22.638       1.0000         .10000E-03   10000.    
    18 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.948       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5714       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87664       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=   5231.026     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2403 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0266        11.789       -.73841E-06   -.11632E-03
   2  norm          8.1337        9.0468       -.70241E-07   -.10581E-04
   3  Prefactor     .10000E-03    4.6037        .19403E-07** at limit **
   4  Prefactor     .10000E-03    8.5508        .53620E-05** at limit **
   5  Prefactor     .10000E-03    18.705       -.13877E-04** at limit **
   6  norm          .10068E-03    .73424        .67670E-06** at limit **
   7  norm          .10000E-03    3.2387       -.62004E-07** at limit **
   8  norm          21.700        11.214        .23225E-06    .20267E-03
   9  Prefactor     .10000E-03    7.3138       -.18374E-05** at limit **
  10  norm          .10000E-03    10.548       -.10078E-04** at limit **
  11  Prefactor     4.5125        14.264       -.10959E-05   -.53232E-04
  12  norm          .10000E-03    2.3021       -.16719E-07** at limit **
  13  Prefactor     .10000E-03    5.9522        .74146E-08** at limit **
  14  Prefactor     .10000E-03    72.486       -.14257E-04** at limit **
  15  norm          .10000E-03    2.8686       -.11603E-07** at limit **
  16  norm          2.5212        3.1956        .13941E-06   -.28332E-03
  17  norm          22.637        17.011       -.15168E-06    .23136E-05
  18  norm          .10000E-03    4.1118        .26811E-07** at limit **
  19  Prefactor     15.933        35.993       -.19057E-04   -.32403E-05
  20  Prefactor     .10000E-03    43.517        .14719E-04** at limit **
  21  Normalizat    1.5714        .27808        .69294E-06   -.10824E-03
  22  Prefactor     .87672        .14083        .14180E-05   -.18432E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.02662
  norm       = 8.13371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100681
  norm       = 0.0001
  norm       = 21.6998
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.51254
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.52116
  norm       = 22.6372
  norm       = 0.0001
  Prefactor  = 15.9326
  Prefactor  = 0.0001
  Normalizat = 1.57144
  Prefactor  = 0.87672
 **********
 **   18 **HESSE 
 **********

 FCN=   5231.026     FROM HESSE     STATUS=OK           338 CALLS     2741 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0266        11.786        .17934E-03   -1.5260    
   2  norm          8.1337        9.0472        .14057E-03   -1.5137    
   3  Prefactor     .10000E-03    4.6088        .15155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.6364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10068E-03    14.564        .11800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.2636        .12673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          21.700        11.105        .85992E-04   -1.4776    
   9  Prefactor     .10000E-03    7.3174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5125        14.251        .18946E-03   -1.5283    
  12  norm          .10000E-03    2.3058        .10716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.549        .33290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    72.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8717        .11961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5212        3.1834        .13803E-03   -1.5390    
  17  norm          22.637        17.011        .84185E-04   -1.4756    
  18  norm          .10000E-03    4.1221        .14320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.933        36.025        .10029E-03   -1.4909    
  20  Prefactor     .10000E-03    43.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5714        .31913        .31126E-03   -.75790    
  22  Prefactor     .87672        .16462        .20818E-03   -.96959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41979e-08
Minuit parameter uncertainties:
  1  11.7911
  2  9.04868
  3  5.23753e-06
  4  4.342e-05
  5  2.63869e-05
  6  0.0062989
  7  8.5613e-06
  8  11.1062
  9  1.20763e-06
  10  1.78204e-06
  11  14.2618
  12  2.02466e-06
  13  0.000208345
  14  4.50441e-05
  15  6.12274e-07
  16  3.18358
  17  17.0142
  18  2.73865e-05
  19  36.074
  20  8.96055e-05
  21  0.319538
  22  0.164711
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.083e-04  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:  8.767e-01  1.647e-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.571e+00  3.195e-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.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999196/likelihoodResults_607392001_607651201_4FGL_J1349.5-1131_daily_bin1420.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) = 5231.025955
delta logL = -0.000304894758301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5231.02563695
delta logL = 1.31532151499e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16169E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6226       1.0000          .0000       10.000    
     3 'Normalizat'    1.5720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87646       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=   5229.616     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      299 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14339        1.5613        .40513E-02   -.14330E-02
   2  Index         5.4463        2.9464        .11941        .66249E-05
   3  Normalizat    1.3900        .78267E-01    .73827E-01   -.21029E-03
   4  Prefactor     .93497        .40770E-01    .44704E-01   -.22690E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.143386
  Index      = 5.44632
  Normalizat = 1.38996
  Prefactor  = 0.934973
 **********
 **   18 **HESSE 
 **********

 FCN=   5229.616     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      328 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14339        3.3734        .18319E-04   -1.5632    
   2  Index         5.4463        7.3251        .46395E-02    .89383E-01
   3  Normalizat    1.3900        .29518        .32671E-03   -.80919    
   4  Prefactor     .93497        .15049        .20222E-03   -.94930    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.53086e-10
Minuit parameter uncertainties:
  1  1.39058
  2  5.41865
  3  0.295539
  4  0.150555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999196': 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) = 5229.61557209
delta logL = 1.41007801331

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.434e-01  1.391e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  5.446e+00  5.419e+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.350e-01  1.506e-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.390e+00  2.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 5.45 +/- 5.42
Photon Flux (Free Index): 1.71e-07 +/- 1.18e-07
Energy Flux (Free Index): 2.20e-05 +/- 1.78e-05

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/999196/cmap_HighResolution_607392001_607651201_4FGL_J1349.5-1131_daily_bin1420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', energy_flux2='2.20e-05', dlogl='1.41e+00', photon_flux2='1.71e-07', job_status='DONE', time_completed='2021-09-08 14:42:40.484883', photon_index_error2='5.42', photon_index2='5.45', ts='-0.00', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.78e-05', EG='1.57', time_epoch_completed='1631137360.48', return_code='0', job_id='999196', GAL2='0.93', EG2='1.39', return_code2='102', photon_flux_error2='1.18e-07', ts2='3.08', photon_index='2.49' WHERE bin_id='1420' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:42:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 999196: <4FGL_J1349.5-1131_daily_bin1420> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1420> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 14:30:43 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:31: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:31:44 2021
Terminated at Wed Sep  8 14:42:40 2021
Results reported at Wed Sep  8 14:42:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1420 207.387 -11.5188 607392001 607651201 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 :                                   569.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            717 sec.

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

