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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1415
RA = 207.387, Dec = -11.5188
tmin = 606096001, tmax = 606355201
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='999189', job_status='RUN', time_executed='2021-09-08 14:35:32.125407', time_epoch_executed='1631136932.13' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999189

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999189/ft1_4FGL_J1349.5-1131_daily_bin1415.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999189/ft2_4FGL_J1349.5-1131_daily_bin1415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999189/ft1_4FGL_J1349.5-1131_daily_bin1415.fits outfile=/scratch/kocevski/999189/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1415.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=606096001.0 tmax=606355201.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.75
user 3.48
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999189/ft1_filtered_4FGL_J1349.5-1131_daily_bin1415.fits" evtable="EVENTS" scfile=/scratch/kocevski/999189/ft2_4FGL_J1349.5-1131_daily_bin1415.fits sctable="SC_DATA" outfile=/scratch/kocevski/999189/ltcube_606096001_606355201_4FGL_J1349.5-1131_daily_bin1415.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/999189/ft2_4FGL_J1349.5-1131_daily_bin1415.fits
.....................!
real 16.64
user 16.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999189/ft1_filtered_4FGL_J1349.5-1131_daily_bin1415.fits evtable="EVENTS" scfile=/scratch/kocevski/999189/ft2_4FGL_J1349.5-1131_daily_bin1415.fits sctable="SC_DATA" expcube=/scratch/kocevski/999189/ltcube_606096001_606355201_4FGL_J1349.5-1131_daily_bin1415.fits outfile=/scratch/kocevski/999189/expmap_606096001_606355201_4FGL_J1349.5-1131_daily_bin1415.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/999189/ltcube_606096001_606355201_4FGL_J1349.5-1131_daily_bin1415.fits
.....................!
real 192.49
user 187.87
sys 4.09

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/999189/ft1_filtered_4FGL_J1349.5-1131_daily_bin1415.fits scfile=/scratch/kocevski/999189/ft2_4FGL_J1349.5-1131_daily_bin1415.fits outfile=/scratch/kocevski/999189/cmap_606096001_606355201_4FGL_J1349.5-1131_daily_bin1415.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/999189/ft1_filtered_4FGL_J1349.5-1131_daily_bin1415.fits scfile=/scratch/kocevski/999189/ft2_4FGL_J1349.5-1131_daily_bin1415.fits outfile=/scratch/kocevski/999189/cmap_HighResolution_606096001_606355201_4FGL_J1349.5-1131_daily_bin1415.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.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/999189/ft1_filtered_4FGL_J1349.5-1131_daily_bin1415.fits evtable="EVENTS" scfile=/scratch/kocevski/999189/ft2_4FGL_J1349.5-1131_daily_bin1415.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/999189/Model_4FGL_J1349.5-1131_daily_bin1415.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/999189/ft1_filtered_4FGL_J1349.5-1131_daily_bin1415.fits.....................!
real 54.15
user 52.70
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15426E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7080       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.9570       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.281       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.463       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9234       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.859       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .14664E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3877       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2515       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92769       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=   6594.584     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2368 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.043       -.10066E-04** at limit **
   2  norm          .10000E-03    6.7822       -.45129E-05** at limit **
   3  Prefactor     .10001E-03    3.9264       -.10155E-05** at limit **
   4  Prefactor     9.7076        8.5422       -.68681E-06    .97560E-04
   5  Prefactor     .10000E-03    5.9895        .35178E-05** at limit **
   6  norm          1.9568        1.5915       -.35035E-06   -.33310E-03
   7  norm          .10000E-03    1.4636        .10036E-06** at limit **
   8  norm          10.281        7.1088       -.79262E-06   -.21109E-04
   9  Prefactor     .10000E-03    11.855        .96243E-05** at limit **
  10  norm          .10000E-03    21.416        .43065E-05** at limit **
  11  Prefactor     12.460        14.365       -.24650E-05   -.18147E-03
  12  norm          .10000E-03    2.8203       -.36180E-06** at limit **
  13  Prefactor     1.9236        3.3246       -.84708E-06   -.46940E-03
  14  Prefactor     18.861        34.353        .26126E-05    .11588E-04
  15  norm          .10000E-03    2.8691        .20558E-06** at limit **
  16  norm          .10000E-03    1.3065       -.51123E-06** at limit **
  17  norm          .10000E-03    15.058       -.90068E-05** at limit **
  18  norm          .10000E-03    2.2591       -.70046E-07** at limit **
  19  Prefactor     .10000E-03    23.292        .11623E-04** at limit **
  20  Prefactor     4.3477        67.624       -.12535E-03    .13004E-04
  21  Normalizat    1.2517        .23705        .14977E-05    .40301E-03
  22  Prefactor     .92764        .12157        .42837E-05    .18649E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 9.70765
  Prefactor  = 0.0001
  norm       = 1.95683
  norm       = 0.0001
  norm       = 10.2812
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.4603
  norm       = 0.0001
  Prefactor  = 1.92359
  Prefactor  = 18.8614
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.34772
  Normalizat = 1.25166
  Prefactor  = 0.927643
 **********
 **   18 **HESSE 
 **********

 FCN=   6594.584     FROM HESSE     STATUS=OK           338 CALLS     2706 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.7993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    35.138        .31150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7076        8.5417        .12861E-03   -1.5085    
   5  Prefactor     .10000E-03    5.9969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9568        1.5835        .87876E-04   -1.5428    
   7  norm          .10000E-03    1.4794        .95800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.281        7.0943        .12496E-03   -1.5067    
   9  Prefactor     .10000E-03    11.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    21.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.460        14.377        .11347E-03   -1.5002    
  12  norm          .10000E-03    2.8401        .13311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9236        3.2982        .18749E-03   -1.5431    
  14  Prefactor     18.861        34.353        .92228E-04   -1.4839    
  15  norm          .10000E-03    2.8821        .13429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.7409        .17975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.2649        .11919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.3477        68.312        .19227E-03   -1.5291    
  21  Normalizat    1.2517        .28140        .32230E-03   -.85021    
  22  Prefactor     .92764        .14494        .19225E-03   -.95182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45172e-09
Minuit parameter uncertainties:
  1  4.15973e-05
  2  1.50287e-05
  3  0.00131779
  4  8.54275
  5  1.16747e-05
  6  1.58355
  7  5.68377e-06
  8  7.09483
  9  1.61705e-05
  10  5.26246e-05
  11  14.3813
  12  1.8625e-05
  13  3.29848
  14  34.389
  15  1.01114e-05
  16  2.33507e-06
  17  1.84553e-05
  18  8.42053e-06
  19  9.86476e-05
  20  34.5141
  21  0.281742
  22  0.145005
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.924e+00  3.298e+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.276e-01  1.450e-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.252e+00  2.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/999189/likelihoodResults_606096001_606355201_4FGL_J1349.5-1131_daily_bin1415.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) = 6594.50490329
delta logL = 0.0789922355807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6594.5026808
delta logL = 0.0812147223469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2786       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0575       1.0000          .0000       10.000    
     3 'Normalizat'    1.2587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92513       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=   6594.503     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      230 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2770        3.6251        .68004E-02    .28252E-03
   2  Index         2.0553        1.0100        .25468E-01    .72109E-05
   3  Normalizat    1.2589        .22793        .72648E-01   -.63371E-04
   4  Prefactor     .92509        .11951        .45325E-01   -.56008E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.27701
  Index      = 2.05528
  Normalizat = 1.2589
  Prefactor  = 0.925089
 **********
 **   18 **HESSE 
 **********

 FCN=   6594.503     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2770        3.6267        .18959E-03   -1.5406    
   2  Index         2.0553        1.0183        .10187E-02   -.62975    
   3  Normalizat    1.2589        .27117        .32148E-03   -.84802    
   4  Prefactor     .92509        .14237        .19247E-03   -.95270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66673e-11
Minuit parameter uncertainties:
  1  3.62701
  2  1.02943
  3  0.271473
  4  0.142424
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999189': 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) = 6594.50267832
delta logL = 0.081217204186

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.277e+00  3.627e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.055e+00  1.029e+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.251e-01  1.424e-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.259e+00  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.52
Ra Dec: 207.387 -11.519

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/999189/cmap_HighResolution_606096001_606355201_4FGL_J1349.5-1131_daily_bin1415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.74e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-08 14:46:48.685544', job_id='999189', GAL2='0.93', fit_tolerance='1e-08', EG2='1.26', EG='1.25', time_epoch_completed='1631137608.69', return_code2='0', ts='0.52', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='8.12e-02', ts2='0.68', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1415' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:46:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 999189: <4FGL_J1349.5-1131_daily_bin1415> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1415 207.387 -11.5188 606096001 606355201 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 :                                   618.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            967 sec.

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

