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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1316
RA = 207.387, Dec = -11.5188
tmin = 580435201, tmax = 580694401
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='999044', job_status='RUN', time_executed='2021-09-08 14:31:56.706376', time_epoch_executed='1631136716.71' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999044

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999044/ft1_4FGL_J1349.5-1131_daily_bin1316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999044/ft2_4FGL_J1349.5-1131_daily_bin1316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999044/ft1_4FGL_J1349.5-1131_daily_bin1316.fits outfile=/scratch/kocevski/999044/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1316.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=580435201.0 tmax=580694401.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.08
user 2.86
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999044/ft1_filtered_4FGL_J1349.5-1131_daily_bin1316.fits" evtable="EVENTS" scfile=/scratch/kocevski/999044/ft2_4FGL_J1349.5-1131_daily_bin1316.fits sctable="SC_DATA" outfile=/scratch/kocevski/999044/ltcube_580435201_580694401_4FGL_J1349.5-1131_daily_bin1316.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/999044/ft2_4FGL_J1349.5-1131_daily_bin1316.fits
.....................!
real 17.63
user 17.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999044/ft1_filtered_4FGL_J1349.5-1131_daily_bin1316.fits evtable="EVENTS" scfile=/scratch/kocevski/999044/ft2_4FGL_J1349.5-1131_daily_bin1316.fits sctable="SC_DATA" expcube=/scratch/kocevski/999044/ltcube_580435201_580694401_4FGL_J1349.5-1131_daily_bin1316.fits outfile=/scratch/kocevski/999044/expmap_580435201_580694401_4FGL_J1349.5-1131_daily_bin1316.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/999044/ltcube_580435201_580694401_4FGL_J1349.5-1131_daily_bin1316.fits
.....................!
real 191.62
user 186.71
sys 4.43

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/999044/ft1_filtered_4FGL_J1349.5-1131_daily_bin1316.fits scfile=/scratch/kocevski/999044/ft2_4FGL_J1349.5-1131_daily_bin1316.fits outfile=/scratch/kocevski/999044/cmap_580435201_580694401_4FGL_J1349.5-1131_daily_bin1316.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999044/ft1_filtered_4FGL_J1349.5-1131_daily_bin1316.fits scfile=/scratch/kocevski/999044/ft2_4FGL_J1349.5-1131_daily_bin1316.fits outfile=/scratch/kocevski/999044/cmap_HighResolution_580435201_580694401_4FGL_J1349.5-1131_daily_bin1316.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.583       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .33240E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2100       1.0000         .10000E-03   10000.    
     6 'norm      '    2.7289       1.0000         .10000E-03   10000.    
     7 'norm      '    .10760E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    23.485       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15726E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6799       1.0000         .10000E-03   10000.    
    14 'Prefactor '    74.405       1.0000         .10000E-03   10000.    
    15 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    56.447       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.082       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0207       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88126       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=   5450.464     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2438 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.582        12.716       -.11687E-06   -.55189E-04
   2  norm          .10000E-03    2.9696       -.77881E-07** at limit **
   3  Prefactor     .10000E-03    8.7246       -.48894E-06** at limit **
   4  Prefactor     .10000E-03    3.3456        .38481E-06** at limit **
   5  Prefactor     1.2567        4.2566        .64185E-06   -.37937E-03
   6  norm          2.7289        1.7671       -.46438E-07    .52210E-04
   7  norm          .10000E-03    3.2000       -.18775E-05** at limit **
   8  norm          23.488        11.025        .30970E-05    .96579E-03
   9  Prefactor     .10000E-03    54.656       -.22051E-04** at limit **
  10  norm          .10000E-03    27.124        .43711E-06** at limit **
  11  Prefactor     .10000E-03    5.9766       -.49064E-05** at limit **
  12  norm          .10000E-03    2.8176        .64194E-07** at limit **
  13  Prefactor     8.6782        8.6645       -.19606E-05   -.29806E-05
  14  Prefactor     74.400        70.794       -.51702E-05    .25858E-04
  15  norm          .10000E-03    5.7854        .44999E-05** at limit **
  16  norm          .10000E-03    1.2516        .19691E-07** at limit **
  17  norm          .10000E-03    3.4692       -.41507E-06** at limit **
  18  norm          56.446        15.750        .57580E-07   -.11414E-04
  19  Prefactor     20.079        23.745       -.19376E-05   -.80429E-05
  20  Prefactor     .10000E-03    49.820        .19601E-04** at limit **
  21  Normalizat    1.0208        .25630        .65860E-06    .22612E-03
  22  Prefactor     .88123        .13123        .30774E-06    .40764E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.5815
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.25671
  norm       = 2.72887
  norm       = 0.000100004
  norm       = 23.4878
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.67817
  Prefactor  = 74.3997
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 56.4455
  Prefactor  = 20.079
  Prefactor  = 0.0001
  Normalizat = 1.02084
  Prefactor  = 0.881231
 **********
 **   18 **HESSE 
 **********

 FCN=   5450.464     FROM HESSE     STATUS=OK           340 CALLS     2778 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.582        12.748        .54341E-03   -1.4971    
   2  norm          .10000E-03    2.9714        .12425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    37.508        .41462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3559        .13183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2567        41.689        .20570E-02   -1.5484    
   6  norm          2.7289        1.7709        .72605E-04   -1.5378    
   7  norm          .10000E-03    7.3856        .24285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          23.488        11.403        .82656E-04   -1.4738    
   9  Prefactor     .10000E-03    55.111        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    27.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9458        .17569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.8442        .12100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.6782        8.7213        .13606E-03   -1.5119    
  14  Prefactor     74.400        70.949        .46547E-04   -1.3981    
  15  norm          .10000E-03    5.8099        .17314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2625        .80581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.4694        .13430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          56.446        15.747        .53393E-04   -1.4204    
  19  Prefactor     20.079        23.743        .89377E-04   -1.4811    
  20  Prefactor     .10000E-03    49.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0208        .29405        .34297E-03   -.92336    
  22  Prefactor     .88123        .15152        .19952E-03   -.96800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21344e-09
Minuit parameter uncertainties:
  1  12.7501
  2  7.10331e-07
  3  0.000343035
  4  3.06298e-06
  5  14.4867
  6  1.77095
  7  0.000334769
  8  11.4043
  9  0.000743062
  10  1.12872e-05
  11  5.31389e-06
  12  2.46239e-06
  13  8.72261
  14  71.0295
  15  2.55558e-05
  16  5.25066e-07
  17  7.77142e-07
  18  15.748
  19  23.7545
  20  3.37282e-05
  21  0.294521
  22  0.151592
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  8.678e+00  8.723e+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:  8.812e-01  1.516e-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.021e+00  2.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 207.387 -11.519
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 8.44e-08 +/- 8.48e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 2.48e-05

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

Saving results to:
/scratch/kocevski/999044/likelihoodResults_580435201_580694401_4FGL_J1349.5-1131_daily_bin1316.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) = 5448.42374074
delta logL = 2.04002364866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5448.36488772
delta logL = 2.09887667075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64960       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7686       1.0000          .0000       10.000    
     3 'Normalizat'    .87303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93784       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=   5448.365     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      262 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64916        4.9423        .65544E-02    .54013E-03
   2  Index         4.7690        2.7453        .93623E-01    .12645E-03
   3  Normalizat    .87305        .84780E-01    .82816E-01    .18536E-04
   4  Prefactor     .93787        .46241E-01    .45485E-01    .30365E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.649161
  Index      = 4.76903
  Normalizat = 0.873048
  Prefactor  = 0.937867
 **********
 **   18 **HESSE 
 **********

 FCN=   5448.365     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      295 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64916        8.4186        .29342E-04   -1.5547    
   2  Index         4.7690        3.6864        .38382E-02   -.46211E-01
   3  Normalizat    .87305        .26797        .36667E-03   -.97414    
   4  Prefactor     .93787        .14435        .19394E-03   -.94830    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.97849e-07
Minuit parameter uncertainties:
  1  4.67593
  2  4.14656
  3  0.268379
  4  0.144404
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999044': 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) = 5448.36488756
delta logL = 2.09887683048

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  6.492e-01  4.676e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  4.769e+00  4.147e+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.379e-01  1.444e-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.730e-01  2.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.01
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 4.77 +/- 4.15
Photon Flux (Free Index): 2.36e-07 +/- 1.23e-07
Energy Flux (Free Index): 3.20e-05 +/- 2.11e-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/999044/cmap_HighResolution_580435201_580694401_4FGL_J1349.5-1131_daily_bin1316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-02', comment='SUCCESS', photon_flux='8.44e-08', energy_flux2='3.20e-05', photon_flux_error='8.48e-08', dlogl='2.10e+00', energy_flux='2.47e-05', photon_flux2='2.36e-07', job_status='DONE', time_completed='2021-09-08 14:41:50.732325', photon_index_error2='4.15', photon_index2='4.77', ts='1.32', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='2.46e-07', energy_flux_error2='2.11e-05', EG='1.02', time_epoch_completed='1631137310.73', return_code='0', job_id='999044', GAL2='0.94', EG2='0.87', return_code2='102', energy_flux_error='2.48e-05', photon_flux_error2='1.23e-07', ts2='6.01', photon_index='2.49' WHERE bin_id='1316' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:41:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 999044: <4FGL_J1349.5-1131_daily_bin1316> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1316 207.387 -11.5188 580435201 580694401 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 :                                   570.03 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             294.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            680 sec.

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

