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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1611
RA = 207.387, Dec = -11.5188
tmin = 656899201, tmax = 657158401
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='359362', job_status='RUN', time_executed='2021-12-08 00:49:09.097336', time_epoch_executed='1638953349.1' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359362

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359362/ft1_4FGL_J1349.5-1131_daily_bin1611.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359362/ft2_4FGL_J1349.5-1131_daily_bin1611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359362/ft1_4FGL_J1349.5-1131_daily_bin1611.fits outfile=/scratch/kocevski/359362/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1611.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=656899201.0 tmax=657158401.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.62
user 3.37
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/359362/ft2_4FGL_J1349.5-1131_daily_bin1611.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/359362/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1611.fits evtable="EVENTS" outfile="/scratch/kocevski/359362/ft1_filtered_4FGL_J1349.5-1131_daily_bin1611.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.51
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/359362/ft1_filtered_4FGL_J1349.5-1131_daily_bin1611.fits" evtable="EVENTS" scfile=/scratch/kocevski/359362/ft2_4FGL_J1349.5-1131_daily_bin1611.fits sctable="SC_DATA" outfile=/scratch/kocevski/359362/ltcube_656899201_657158401_4FGL_J1349.5-1131_daily_bin1611.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/359362/ft2_4FGL_J1349.5-1131_daily_bin1611.fits
.....................!
real 13.99
user 13.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359362/ft1_filtered_4FGL_J1349.5-1131_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/359362/ft2_4FGL_J1349.5-1131_daily_bin1611.fits sctable="SC_DATA" expcube=/scratch/kocevski/359362/ltcube_656899201_657158401_4FGL_J1349.5-1131_daily_bin1611.fits outfile=/scratch/kocevski/359362/expmap_656899201_657158401_4FGL_J1349.5-1131_daily_bin1611.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/359362/ltcube_656899201_657158401_4FGL_J1349.5-1131_daily_bin1611.fits
.....................!
real 191.96
user 186.11
sys 5.11

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/359362/ft1_filtered_4FGL_J1349.5-1131_daily_bin1611.fits scfile=/scratch/kocevski/359362/ft2_4FGL_J1349.5-1131_daily_bin1611.fits outfile=/scratch/kocevski/359362/cmap_656899201_657158401_4FGL_J1349.5-1131_daily_bin1611.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/359362/ft1_filtered_4FGL_J1349.5-1131_daily_bin1611.fits scfile=/scratch/kocevski/359362/ft2_4FGL_J1349.5-1131_daily_bin1611.fits outfile=/scratch/kocevski/359362/cmap_HighResolution_656899201_657158401_4FGL_J1349.5-1131_daily_bin1611.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/359362/ft1_filtered_4FGL_J1349.5-1131_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/359362/ft2_4FGL_J1349.5-1131_daily_bin1611.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/359362/Model_4FGL_J1349.5-1131_daily_bin1611.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/359362/ft1_filtered_4FGL_J1349.5-1131_daily_bin1611.fits.....................!
real 60.37
user 58.93
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11404E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3084       1.0000         .10000E-03   10000.    
     5 'Prefactor '    60.969       1.0000         .10000E-03   10000.    
     6 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7012       1.0000         .10000E-03   10000.    
     8 'norm      '    .88657       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6693       1.0000         .10000E-03   10000.    
    12 'norm      '    27.431       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.568       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14069E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.8561       1.0000         .10000E-03   10000.    
    16 'norm      '    7.1808       1.0000         .10000E-03   10000.    
    17 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11534E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.402       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.123       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2693       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3468       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=   7136.743     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2405 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.676        .24465E-05** at limit **
   2  norm          .10000E-03    3.7820       -.40524E-07** at limit **
   3  Prefactor     .10000E-03    9.3480       -.51094E-06** at limit **
   4  Prefactor     4.3075        5.2230        .27746E-06   -.22525E-04
   5  Prefactor     60.996        55.141       -.45174E-06    .27323E-03
   6  norm          .10000E-03    .51562       -.28219E-08** at limit **
   7  norm          2.6662        12.271        .49012E-05    .82970E-04
   8  norm          .92951        19.179       -.35663E-05   -.26835E-03
   9  Prefactor     .10000E-03    11.352        .79386E-06** at limit **
  10  norm          .10000E-03    11.196        .10741E-05** at limit **
  11  Prefactor     8.6655        17.560       -.12890E-06    .11845E-04
  12  norm          27.426        10.395        .12718E-06    .13815E-03
  13  Prefactor     14.548        12.126       -.91075E-06    .33513E-03
  14  Prefactor     .10000E-03    34.993        .13212E-05** at limit **
  15  norm          7.8683        15.726        .32659E-05   -.30902E-04
  16  norm          7.1820        4.1458       -.71990E-07   -.16736E-04
  17  norm          .10000E-03    15.434       -.32215E-05** at limit **
  18  norm          .10000E-03    11.588       -.19348E-06** at limit **
  19  Prefactor     21.408        36.495        .23499E-05   -.35711E-04
  20  Prefactor     14.114        25.215       -.29027E-05    .71694E-04
  21  Normalizat    1.2696        .30605       -.14434E-05    .15754E-03
  22  Prefactor     1.3466        .15690        .36749E-06    .14173E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.30751
  Prefactor  = 60.9961
  norm       = 0.0001
  norm       = 2.66621
  norm       = 0.929515
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.66554
  norm       = 27.4262
  Prefactor  = 14.5477
  Prefactor  = 0.0001
  norm       = 7.86828
  norm       = 7.18197
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 21.4078
  Prefactor  = 14.1144
  Normalizat = 1.26955
  Prefactor  = 1.34664
 **********
 **   18 **HESSE 
 **********

 FCN=   7136.743     FROM HESSE     STATUS=OK           344 CALLS     2749 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.7841        .16045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.4980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.3075        5.2179        .19408E-03   -1.5293    
   5  Prefactor     60.996        56.522        .51386E-04   -1.4144    
   6  norm          .10000E-03    .52882        .11839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6662        13.907        .24786E-03   -1.5381    
   8  norm          .92951        80.098        .48213E-02   -1.5515    
   9  Prefactor     .10000E-03    11.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    11.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.6655        17.551        .13614E-03   -1.5119    
  12  norm          27.426        10.399        .76491E-04   -1.4660    
  13  Prefactor     14.548        11.700        .10494E-03   -1.4945    
  14  Prefactor     .10000E-03    34.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.8683        15.278        .14306E-03   -1.5147    
  16  norm          7.1820        4.1488        .12302E-03   -1.5172    
  17  norm          .10000E-03    15.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    11.918        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.408        36.310        .86579E-04   -1.4782    
  20  Prefactor     14.114        25.103        .10658E-03   -1.4956    
  21  Normalizat    1.2696        .35262        .41833E-03   -.84480    
  22  Prefactor     1.3466        .18287        .21931E-03   -.81931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42798e-09
Minuit parameter uncertainties:
  1  0.000133079
  2  9.29166e-07
  3  1.18215e-05
  4  5.2185
  5  56.5719
  6  8.68654e-07
  7  12.1827
  8  17.2802
  9  2.65011e-05
  10  3.81617e-05
  11  17.5613
  12  10.3995
  13  11.7016
  14  8.18439e-05
  15  15.2856
  16  4.14893
  17  0.000176706
  18  1.72368e-05
  19  36.3479
  20  25.1216
  21  0.35329
  22  0.182959
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.455e+01  1.170e+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:  1.347e+00  1.830e-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.270e+00  3.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.95
Ra Dec: 207.387 -11.519
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 1.41e-07 +/- 1.14e-07
Energy Flux (Fixed Index): 4.13e-05 +/- 3.33e-05

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

Saving results to:
/scratch/kocevski/359362/likelihoodResults_656899201_657158401_4FGL_J1349.5-1131_daily_bin1611.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) = 7134.42979539
delta logL = 2.31282537383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7134.42040776
delta logL = 2.3222130051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9217       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0439       1.0000          .0000       10.000    
     3 'Normalizat'    1.0816       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4166       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=   7134.420     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      268 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9191        17.303        .59417E-02    .36965E-03
   2  Index         4.0445        2.5303        .92411E-01    .16898E-03
   3  Normalizat    1.0815        .11579        .10085        .17371E-04
   4  Prefactor     1.4167        .61996E-01    .48523E-01   -.17794E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.91914
  Index      = 4.04447
  Normalizat = 1.08149
  Prefactor  = 1.41666
 **********
 **   18 **HESSE 
 **********

 FCN=   7134.420     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      301 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9191        25.349        .58214E-04   -1.5366    
   2  Index         4.0445        3.1979        .37857E-02   -.19229    
   3  Normalizat    1.0815        .34367        .44688E-03   -.90348    
   4  Prefactor     1.4167        .18682        .21449E-03   -.79901    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.53598e-07
Minuit parameter uncertainties:
  1  17.2137
  2  3.48301
  3  0.344381
  4  0.186912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359362': 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) = 7134.42040755
delta logL = 2.32221320918

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.919e+00  1.721e+01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  4.044e+00  3.483e+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:  1.417e+00  1.869e-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.081e+00  3.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.28
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 4.04 +/- 3.48
Photon Flux (Free Index): 3.08e-07 +/- 1.37e-07
Energy Flux (Free Index): 4.58e-05 +/- 3.52e-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/359362/cmap_HighResolution_656899201_657158401_4FGL_J1349.5-1131_daily_bin1611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-02', comment='SUCCESS', photon_flux='1.41e-07', energy_flux2='4.58e-05', photon_flux_error='1.14e-07', dlogl='2.32e+00', energy_flux='4.13e-05', photon_flux2='3.08e-07', job_status='DONE', time_completed='2021-12-08 01:00:03.577510', photon_index_error2='3.48', photon_index2='4.04', ts='2.95', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='3.22e-07', energy_flux_error2='3.52e-05', EG='1.27', time_epoch_completed='1638954003.58', return_code='0', job_id='359362', GAL2='1.42', EG2='1.08', return_code2='102', energy_flux_error='3.33e-05', photon_flux_error2='1.37e-07', ts2='8.28', photon_index='2.49' WHERE bin_id='1611' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 01:00:03 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 359362: <4FGL_J1349.5-1131_daily_bin1611> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1611> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec  8 00:45:17 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 00:45:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 00:45:20 2021
Terminated at Wed Dec  8 01:00:04 2021
Results reported at Wed Dec  8 01:00:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1611 207.387 -11.5188 656899201 657158401 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 :                                   653.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            887 sec.

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

