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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin635
RA = 207.387, Dec = -11.5188
tmin = 403920001, tmax = 404179201
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='995341', job_status='RUN', time_executed='2021-09-08 14:19:48.641923', time_epoch_executed='1631135988.64' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995341

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995341/ft1_4FGL_J1349.5-1131_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995341/ft2_4FGL_J1349.5-1131_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995341/ft1_4FGL_J1349.5-1131_daily_bin635.fits outfile=/scratch/kocevski/995341/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin635.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.27
user 9.75
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995341/ft1_filtered_4FGL_J1349.5-1131_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/995341/ft2_4FGL_J1349.5-1131_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/995341/ltcube_403920001_404179201_4FGL_J1349.5-1131_daily_bin635.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/995341/ft2_4FGL_J1349.5-1131_daily_bin635.fits
.....................!
real 12.56
user 12.18
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995341/ft1_filtered_4FGL_J1349.5-1131_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/995341/ft2_4FGL_J1349.5-1131_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/995341/ltcube_403920001_404179201_4FGL_J1349.5-1131_daily_bin635.fits outfile=/scratch/kocevski/995341/expmap_403920001_404179201_4FGL_J1349.5-1131_daily_bin635.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/995341/ltcube_403920001_404179201_4FGL_J1349.5-1131_daily_bin635.fits
.....................!
real 192.17
user 186.79
sys 4.60

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/995341/ft1_filtered_4FGL_J1349.5-1131_daily_bin635.fits scfile=/scratch/kocevski/995341/ft2_4FGL_J1349.5-1131_daily_bin635.fits outfile=/scratch/kocevski/995341/cmap_403920001_404179201_4FGL_J1349.5-1131_daily_bin635.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/995341/ft1_filtered_4FGL_J1349.5-1131_daily_bin635.fits scfile=/scratch/kocevski/995341/ft2_4FGL_J1349.5-1131_daily_bin635.fits outfile=/scratch/kocevski/995341/cmap_HighResolution_403920001_404179201_4FGL_J1349.5-1131_daily_bin635.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.820       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.992       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.998       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3299       1.0000         .10000E-03   10000.    
     8 'norm      '    .10199E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14515E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.401       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.683       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18807E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.690       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5504       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .66158       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=   823.0895     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2301 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.340        .15072E-04** at limit **
   2  norm          .10000E-03    23.891       -.13181E-04** at limit **
   3  Prefactor     30.818        36.400       -.28734E-05    .19602E-04
   4  Prefactor     29.996        28.938        .21076E-05    .24386E-04
   5  Prefactor     .10000E-03    21.372        .44261E-05** at limit **
   6  norm          16.001        8.3687       -.23702E-06    .41214E-04
   7  norm          1.3297        10.579       -.29787E-05    .60064E-04
   8  norm          .10000E-03    15.136       -.11759E-04** at limit **
   9  Prefactor     .10000E-03    51.435        .30061E-04** at limit **
  10  norm          .10000E-03    72.158       -.29137E-04** at limit **
  11  Prefactor     38.388        38.897       -.11288E-04   -.38153E-04
  12  norm          .10000E-03    7.5388       -.52930E-08** at limit **
  13  Prefactor     41.683        22.266        .15388E-06    .26165E-03
  14  Prefactor     .10079E-03    1199.2       -.69190E-03** at limit **
  15  norm          .10000E-03    13.458        .35226E-05** at limit **
  16  norm          .10000E-03    3.7575        .42479E-06** at limit **
  17  norm          .10000E-03    42.363        .12123E-04** at limit **
  18  norm          10.695        23.354        .13182E-05    .58804E-05
  19  Prefactor     .10000E-03    34.035       -.20190E-04** at limit **
  20  Prefactor     .10000E-03    41.479        .90627E-05** at limit **
  21  Normalizat    1.5490        .72079        .35676E-05    .26235E-03
  22  Prefactor     .66215        .36255        .49384E-05    .37913E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 30.8177
  Prefactor  = 29.996
  Prefactor  = 0.0001
  norm       = 16.0012
  norm       = 1.3297
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 38.3876
  norm       = 0.0001
  Prefactor  = 41.6828
  Prefactor  = 0.000100794
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.6946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.54898
  Prefactor  = 0.662151
 **********
 **   18 **HESSE 
 **********

 FCN=   823.0895     FROM HESSE     STATUS=OK           326 CALLS     2627 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.347        .12008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    23.898        .13706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.818        36.406        .72172E-04   -1.4597    
   4  Prefactor     29.996        28.972        .73159E-04   -1.4612    
   5  Prefactor     .10000E-03    21.376        .12960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.001        8.4302        .57002E-04   -1.4908    
   7  norm          1.3297        10.438        .17939E-03   -1.5477    
   8  norm          .10000E-03    15.126        .10878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    51.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    72.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.388        39.023        .64679E-04   -1.4468    
  12  norm          .10000E-03    7.5425        .76956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.683        22.268        .62090E-04   -1.4416    
  14  Prefactor     .10079E-03    1199.1        .40567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.464        .10283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.7592        .54323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    42.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.695        23.432        .12254E-03   -1.5054    
  19  Prefactor     .10000E-03    34.057        .16364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    41.482        .18063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5490        .86048        .31205E-03   -.76411    
  22  Prefactor     .66215        .43111        .23461E-03   -1.0503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87742e-09
Minuit parameter uncertainties:
  1  3.16302e-06
  2  8.21142e-06
  3  36.4322
  4  28.9854
  5  3.41274e-05
  6  8.43081
  7  7.45266
  8  0.000107654
  9  0.000650895
  10  1.11182e-05
  11  39.0493
  12  6.28821e-05
  13  22.2726
  14  0.0630347
  15  8.44585e-06
  16  6.43965e-06
  17  3.6165e-05
  18  23.4521
  19  2.53587e-05
  20  1.02995e-05
  21  0.868857
  22  0.433297
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  4.168e+01  2.227e+01  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:  6.622e-01  4.333e-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.549e+00  8.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.57
Ra Dec: 207.387 -11.519
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 4.05e-07 +/- 2.16e-07
Energy Flux (Fixed Index): 1.18e-04 +/- 6.33e-05

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) = 822.940374753
delta logL = 0.14910651714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 822.8047767
delta logL = 0.284704569795

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.244       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1158       1.0000          .0000       10.000    
     3 'Normalizat'    1.5995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63836       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=   822.8048     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .18E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.256        35.216        .10315E-05   -.33144E-05
   2  Index         2.1159        .45781        .71361E-05   -.18199E-05
   3  Normalizat    1.5996        .69527       -.15004E-05   -.97071E-05
   4  Prefactor     .63832        .35937       -.84897E-07   -.20149E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.2561
  Index      = 2.11586
  Normalizat = 1.5996
  Prefactor  = 0.638324
 **********
 **   18 **HESSE 
 **********

 FCN=   822.8048     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.256        35.309        .26284E-03   -1.4180    
   2  Index         2.1159        .45870        .26875E-03   -.61484    
   3  Normalizat    1.5996        .81754        .30784E-03   -.75017    
   4  Prefactor     .63832        .42343        .23794E-03   -1.0600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71202e-12
Minuit parameter uncertainties:
  1  35.3214
  2  0.459674
  3  0.824517
  4  0.425578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995341': 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) = 822.804776543
delta logL = 0.284704726727

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  5.826e+01  3.532e+01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.116e+00  4.597e-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:  6.383e-01  4.256e-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.600e+00  8.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.05
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 2.12 +/- 0.46
Photon Flux (Free Index): 3.56e-07 +/- 2.02e-07
Energy Flux (Free Index): 1.89e-04 +/- 1.75e-04

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/995341/cmap_HighResolution_403920001_404179201_4FGL_J1349.5-1131_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.05e-07', energy_flux2='1.89e-04', photon_flux_error='2.16e-07', dlogl='2.85e-01', energy_flux='1.18e-04', photon_flux2='3.56e-07', job_status='DONE', time_completed='2021-09-08 14:26:15.566944', photon_index_error2='0.46', photon_index2='2.12', ts='10.57', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='1.75e-04', EG='1.55', time_epoch_completed='1631136375.57', return_code='0', job_id='995341', GAL2='0.64', EG2='1.60', return_code2='0', energy_flux_error='6.33e-05', photon_flux_error2='2.02e-07', ts2='11.05', photon_index='2.49' WHERE bin_id='635' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:26:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 995341: <4FGL_J1349.5-1131_daily_bin635> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin635> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 14:15:35 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:15:46 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:15:46 2021
Terminated at Wed Sep  8 14:26:16 2021
Results reported at Wed Sep  8 14:26:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin635 207.387 -11.5188 403920001 404179201 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 :                                   383.36 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             269.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            641 sec.

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

