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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin813
RA = 207.387, Dec = -11.5188
tmin = 450057601, tmax = 450316801
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='996635', job_status='RUN', time_executed='2021-09-08 14:25:07.722580', time_epoch_executed='1631136307.72' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='813'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996635

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996635/ft1_4FGL_J1349.5-1131_daily_bin813.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996635/ft2_4FGL_J1349.5-1131_daily_bin813.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996635/ft1_4FGL_J1349.5-1131_daily_bin813.fits outfile=/scratch/kocevski/996635/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin813.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=450057601.0 tmax=450316801.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.59
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996635/ft1_filtered_4FGL_J1349.5-1131_daily_bin813.fits" evtable="EVENTS" scfile=/scratch/kocevski/996635/ft2_4FGL_J1349.5-1131_daily_bin813.fits sctable="SC_DATA" outfile=/scratch/kocevski/996635/ltcube_450057601_450316801_4FGL_J1349.5-1131_daily_bin813.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/996635/ft2_4FGL_J1349.5-1131_daily_bin813.fits
.....................!
real 15.83
user 15.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996635/ft1_filtered_4FGL_J1349.5-1131_daily_bin813.fits evtable="EVENTS" scfile=/scratch/kocevski/996635/ft2_4FGL_J1349.5-1131_daily_bin813.fits sctable="SC_DATA" expcube=/scratch/kocevski/996635/ltcube_450057601_450316801_4FGL_J1349.5-1131_daily_bin813.fits outfile=/scratch/kocevski/996635/expmap_450057601_450316801_4FGL_J1349.5-1131_daily_bin813.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/996635/ltcube_450057601_450316801_4FGL_J1349.5-1131_daily_bin813.fits
.....................!
real 190.65
user 186.27
sys 3.99

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/996635/ft1_filtered_4FGL_J1349.5-1131_daily_bin813.fits scfile=/scratch/kocevski/996635/ft2_4FGL_J1349.5-1131_daily_bin813.fits outfile=/scratch/kocevski/996635/cmap_450057601_450316801_4FGL_J1349.5-1131_daily_bin813.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/996635/ft1_filtered_4FGL_J1349.5-1131_daily_bin813.fits scfile=/scratch/kocevski/996635/ft2_4FGL_J1349.5-1131_daily_bin813.fits outfile=/scratch/kocevski/996635/cmap_HighResolution_450057601_450316801_4FGL_J1349.5-1131_daily_bin813.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/996635/ft1_filtered_4FGL_J1349.5-1131_daily_bin813.fits evtable="EVENTS" scfile=/scratch/kocevski/996635/ft2_4FGL_J1349.5-1131_daily_bin813.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996635/Model_4FGL_J1349.5-1131_daily_bin813.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/996635/ft1_filtered_4FGL_J1349.5-1131_daily_bin813.fits.....................!
real 63.10
user 61.63
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    9.9404       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0874       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.9885       1.0000         .10000E-03   10000.    
     8 'norm      '    10.206       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3554       1.0000         .10000E-03   10000.    
    12 'norm      '    .11122E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5566       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1205       1.0000         .10000E-03   10000.    
    17 'norm      '    17.389       1.0000         .10000E-03   10000.    
    18 'norm      '    4.4110       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.600       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2454       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97055       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=   8037.924     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2349 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3531       -.65279E-07** at limit **
   2  norm          9.9408        8.8967       -.83917E-07   -.10457E-04
   3  Prefactor     .10000E-03    2.9225        .25857E-06** at limit **
   4  Prefactor     7.0861        7.2372        .10910E-05   -.11033E-02
   5  Prefactor     .10000E-03    36.350       -.10986E-05** at limit **
   6  norm          .10000E-03    .45539        .78638E-08** at limit **
   7  norm          7.9817        3.7230       -.32150E-08    .19289E-03
   8  norm          10.204        6.3572        .33150E-06   -.76986E-03
   9  Prefactor     .10000E-03    11.638       -.34143E-05** at limit **
  10  norm          .10000E-03    11.674       -.33533E-05** at limit **
  11  Prefactor     3.3539        7.9342        .14069E-07   -.12258E-04
  12  norm          .10000E-03    1.4416       -.11653E-06** at limit **
  13  Prefactor     5.5574        4.3541       -.20504E-06   -.30933E-03
  14  Prefactor     .10001E-03    12.112        .58470E-05** at limit **
  15  norm          .10000E-03    9.3301        .40837E-06** at limit **
  16  norm          1.1208        1.8737        .73080E-07   -.35936E-03
  17  norm          17.390        13.979        .12167E-07   -.27238E-05
  18  norm          4.4111        4.7099        .10275E-05   -.14319E-02
  19  Prefactor     .10000E-03    9.5943        .59206E-06** at limit **
  20  Prefactor     11.599        20.940       -.46238E-06   -.44153E-04
  21  Normalizat    1.2453        .20964       -.28035E-06    .33965E-04
  22  Prefactor     .97054        .11002       -.13545E-06    .55635E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 9.94079
  Prefactor  = 0.0001
  Prefactor  = 7.0861
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.98168
  norm       = 10.204
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 3.35392
  norm       = 0.0001
  Prefactor  = 5.55738
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 1.12082
  norm       = 17.3896
  norm       = 4.41108
  Prefactor  = 0.0001
  Prefactor  = 11.5989
  Normalizat = 1.24533
  Prefactor  = 0.970537
 **********
 **   18 **HESSE 
 **********

 FCN=   8037.924     FROM HESSE     STATUS=OK           348 CALLS     2697 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3582        .16033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.9408        8.8967        .12709E-03   -1.5077    
   3  Prefactor     .10000E-03    2.9340        .14969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.0861        8.0241        .75341E-03   -1.5176    
   5  Prefactor     .10000E-03    36.861        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .71742        .11698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.9817        3.7228        .10805E-03   -1.5143    
   8  norm          10.204        6.4902        .62712E-03   -1.5069    
   9  Prefactor     .10000E-03    11.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    11.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.3539        7.9185        .22093E-03   -1.5342    
  12  norm          .10000E-03    2.8601        .20926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.5574        4.3555        .15845E-03   -1.5236    
  14  Prefactor     .10001E-03    12.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.6421        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1208        1.8328        .15237E-03   -1.5496    
  17  norm          17.390        13.980        .96046E-04   -1.4874    
  18  norm          4.4111        5.2620        .95875E-03   -1.5288    
  19  Prefactor     .10000E-03    9.6227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.599        20.972        .11762E-03   -1.5027    
  21  Normalizat    1.2453        .24713        .32184E-03   -.85213    
  22  Prefactor     .97054        .12967        .19301E-03   -.93718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54119e-09
Minuit parameter uncertainties:
  1  3.25073e-06
  2  8.89789
  3  1.02551e-05
  4  8.02529
  5  0.000210532
  6  1.03117e-06
  7  3.72288
  8  6.49063
  9  0.00026493
  10  0.000287708
  11  7.92101
  12  2.38658e-05
  13  4.35574
  14  0.000522021
  15  4.46821e-05
  16  1.83285
  17  13.9827
  18  5.26256
  19  4.40667e-05
  20  20.9856
  21  0.247366
  22  0.129713
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  5.557e+00  4.356e+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.705e-01  1.297e-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.245e+00  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 207.387 -11.519
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 5.41e-08 +/- 4.23e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.24e-05

TS (Fixed Index): 2.60
Ra Dec: 207.387 -11.519
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996635/likelihoodResults_450057601_450316801_4FGL_J1349.5-1131_daily_bin813.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) = 8037.79801778
delta logL = 0.126222937728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8037.79221435
delta logL = 0.132026367372

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8904       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1873       1.0000          .0000       10.000    
     3 'Normalizat'    1.2585       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96494       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=   8037.792     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      268 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8903        5.5480        .15284E-03    .37994E-03
   2  Index         2.1878        .56272        .94358E-02    .78590E-04
   3  Normalizat    1.2584        .23971        .32040E-03    .63915E-03
   4  Prefactor     .96500        .12893        .19347E-03    .11982E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.89032
  Index      = 2.18779
  Normalizat = 1.2584
  Prefactor  = 0.965004
 **********
 **   18 **HESSE 
 **********

 FCN=   8037.792     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8903        5.4803        .61137E-05   -1.5183    
   2  Index         2.1878        .55583        .37743E-03   -.59734    
   3  Normalizat    1.2584        .23983        .64081E-04   -.84817    
   4  Prefactor     .96500        .12899        .38695E-04   -.93905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56439e-10
Minuit parameter uncertainties:
  1  5.48071
  2  0.557521
  3  0.240046
  4  0.129036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996635': 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): 0
logL (Free Index) = 8037.79221391
delta logL = 0.132026810056

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  6.890e+00  5.481e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.188e+00  5.575e-01  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.650e-01  1.290e-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.258e+00  2.400e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.86
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 2.19 +/- 0.56
Photon Flux (Free Index): 4.57e-08 +/- 4.04e-08
Energy Flux (Free Index): 2.10e-05 +/- 2.07e-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/996635/cmap_HighResolution_450057601_450316801_4FGL_J1349.5-1131_daily_bin813.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='5.41e-08', energy_flux2='2.10e-05', photon_flux_error='4.23e-08', dlogl='1.32e-01', energy_flux='1.58e-05', photon_flux2='4.57e-08', job_status='DONE', time_completed='2021-09-08 14:36:43.942498', photon_index_error2='0.56', photon_index2='2.19', ts='2.60', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='2.07e-05', EG='1.25', time_epoch_completed='1631137003.94', return_code='0', job_id='996635', GAL2='0.97', EG2='1.26', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.04e-08', ts2='2.86', photon_index='2.49' WHERE bin_id='813' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:36:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 996635: <4FGL_J1349.5-1131_daily_bin813> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin813> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 14:20:29 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:20:58 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:20:58 2021
Terminated at Wed Sep  8 14:36:44 2021
Results reported at Wed Sep  8 14:36:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin813 207.387 -11.5188 450057601 450316801 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 :                                   694.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            975 sec.

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

