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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1238
RA = 207.387, Dec = -11.5188
tmin = 560217601, tmax = 560476801
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='998927', job_status='RUN', time_executed='2021-09-08 14:30:44.046589', time_epoch_executed='1631136644.05' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998927

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998927/ft1_4FGL_J1349.5-1131_daily_bin1238.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998927/ft2_4FGL_J1349.5-1131_daily_bin1238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998927/ft1_4FGL_J1349.5-1131_daily_bin1238.fits outfile=/scratch/kocevski/998927/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1238.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=560217601.0 tmax=560476801.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.71
user 3.42
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998927/ft1_filtered_4FGL_J1349.5-1131_daily_bin1238.fits" evtable="EVENTS" scfile=/scratch/kocevski/998927/ft2_4FGL_J1349.5-1131_daily_bin1238.fits sctable="SC_DATA" outfile=/scratch/kocevski/998927/ltcube_560217601_560476801_4FGL_J1349.5-1131_daily_bin1238.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/998927/ft2_4FGL_J1349.5-1131_daily_bin1238.fits
.....................!
real 15.76
user 15.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998927/ft1_filtered_4FGL_J1349.5-1131_daily_bin1238.fits evtable="EVENTS" scfile=/scratch/kocevski/998927/ft2_4FGL_J1349.5-1131_daily_bin1238.fits sctable="SC_DATA" expcube=/scratch/kocevski/998927/ltcube_560217601_560476801_4FGL_J1349.5-1131_daily_bin1238.fits outfile=/scratch/kocevski/998927/expmap_560217601_560476801_4FGL_J1349.5-1131_daily_bin1238.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/998927/ltcube_560217601_560476801_4FGL_J1349.5-1131_daily_bin1238.fits
.....................!
real 193.18
user 186.39
sys 4.81

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/998927/ft1_filtered_4FGL_J1349.5-1131_daily_bin1238.fits scfile=/scratch/kocevski/998927/ft2_4FGL_J1349.5-1131_daily_bin1238.fits outfile=/scratch/kocevski/998927/cmap_560217601_560476801_4FGL_J1349.5-1131_daily_bin1238.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998927/ft1_filtered_4FGL_J1349.5-1131_daily_bin1238.fits scfile=/scratch/kocevski/998927/ft2_4FGL_J1349.5-1131_daily_bin1238.fits outfile=/scratch/kocevski/998927/cmap_HighResolution_560217601_560476801_4FGL_J1349.5-1131_daily_bin1238.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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998927/ft1_filtered_4FGL_J1349.5-1131_daily_bin1238.fits evtable="EVENTS" scfile=/scratch/kocevski/998927/ft2_4FGL_J1349.5-1131_daily_bin1238.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998927/Model_4FGL_J1349.5-1131_daily_bin1238.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/998927/ft1_filtered_4FGL_J1349.5-1131_daily_bin1238.fits.....................!
real 49.83
user 47.91
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.993       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.314       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11507E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.3592       1.0000         .10000E-03   10000.    
     8 'norm      '    11.595       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10596E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    43.368       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.929       1.0000         .10000E-03   10000.    
    12 'norm      '    .10735E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6945       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20526E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.657       1.0000         .10000E-03   10000.    
    17 'norm      '    .89772       1.0000         .10000E-03   10000.    
    18 'norm      '    7.0198       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.541       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1565       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1072       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=   5736.069     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2380 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.6788       -.59176E-07** at limit **
   2  norm          .10000E-03    3.7828       -.11815E-08** at limit **
   3  Prefactor     10.995        15.889        .19931E-05   -.88932E-05
   4  Prefactor     25.319        16.681        .12628E-05   -.14675E-04
   5  Prefactor     .10000E-03    75.778        .18649E-06** at limit **
   6  norm          .10000E-03    .99828       -.84073E-08** at limit **
   7  norm          6.3730        10.904        .11957E-05   -.16055E-04
   8  norm          11.586        18.918        .10051E-05   -.94906E-05
   9  Prefactor     .10000E-03    18.048        .13986E-06** at limit **
  10  norm          43.370        32.665        .45848E-06   -.36674E-06
  11  Prefactor     26.923        30.821       -.13846E-05   -.37851E-05
  12  norm          .10000E-03    8.6416        .24562E-06** at limit **
  13  Prefactor     5.6876        6.4860       -.15926E-05   -.33320E-04
  14  Prefactor     .10000E-03    129.67       -.14811E-05** at limit **
  15  norm          .10000E-03    6.8980        .20237E-06** at limit **
  16  norm          13.657        4.5840        .11332E-06   -.12481E-04
  17  norm          .89673        .67397       -.31844E-07   -.83786E-04
  18  norm          7.0213        9.4357        .23581E-06   -.11027E-04
  19  Prefactor     19.542        25.360       -.17024E-06   -.14793E-05
  20  Prefactor     .10000E-03    23.979       -.22303E-07** at limit **
  21  Normalizat    1.1564        .29769       -.12333E-05    .54029E-05
  22  Prefactor     1.1072        .15500        .72556E-07   -.37724E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.9954
  Prefactor  = 25.3191
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 6.37297
  norm       = 11.5856
  Prefactor  = 0.0001
  norm       = 43.3703
  Prefactor  = 26.9227
  norm       = 0.0001
  Prefactor  = 5.68764
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.6568
  norm       = 0.896734
  norm       = 7.02127
  Prefactor  = 19.5416
  Prefactor  = 0.0001
  Normalizat = 1.15636
  Prefactor  = 1.10718
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.069     FROM HESSE     STATUS=OK           344 CALLS     2724 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.7182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.7854        .14386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.995        15.846        .12084E-03   -1.5045    
   4  Prefactor     25.319        16.721        .79618E-04   -1.4701    
   5  Prefactor     .10000E-03    76.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.5543        .14505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.3730        10.702        .15917E-03   -1.5203    
   8  norm          11.586        18.633        .11765E-03   -1.5027    
   9  Prefactor     .10000E-03    18.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          43.370        32.669        .60876E-04   -1.4390    
  11  Prefactor     26.923        30.829        .77199E-04   -1.4670    
  12  norm          .10000E-03    8.7432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6876        6.4986        .16833E-03   -1.5231    
  14  Prefactor     .10000E-03    130.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.0174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.657        4.5917        .85383E-04   -1.4969    
  17  norm          .89673        17.844        .25599E-02   -1.5519    
  18  norm          7.0213        9.4347        .75706E-03   -1.5178    
  19  Prefactor     19.542        25.350        .90605E-04   -1.4824    
  20  Prefactor     .10000E-03    24.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1564        .33528        .38054E-03   -.87962    
  22  Prefactor     1.1072        .17706        .21227E-03   -.89237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.78966e-11
Minuit parameter uncertainties:
  1  2.106e-07
  2  1.31261e-06
  3  15.8523
  4  16.7244
  5  0.000992764
  6  1.36903e-06
  7  10.7051
  8  18.642
  9  1.99704e-05
  10  32.682
  11  30.8472
  12  5.18964e-06
  13  6.49944
  14  4.67615e-05
  15  4.33703e-05
  16  4.59185
  17  8.00263
  18  9.43672
  19  25.3644
  20  6.29916e-06
  21  0.335901
  22  0.177153
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  5.688e+00  6.499e+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:  1.107e+00  1.772e-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.156e+00  3.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 207.387 -11.519
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 5.53e-08 +/- 6.32e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.85e-05

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

Saving results to:
/scratch/kocevski/998927/likelihoodResults_560217601_560476801_4FGL_J1349.5-1131_daily_bin1238.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) = 5735.81263053
delta logL = 0.256271374701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5735.80801913
delta logL = 0.260882775613

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2099       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8380       1.0000          .0000       10.000    
     3 'Normalizat'    1.1846       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0998       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=   5735.808     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2123        6.2592        .44028E-02    .43465E-04
   2  Index         1.8384        .58508        .26814       -.47982E-04
   3  Normalizat    1.1845        .27877        .85063E-01    .58580E-05
   4  Prefactor     1.0998        .15287        .37595E-01   -.14420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.21226
  Index      = 1.83844
  Normalizat = 1.18454
  Prefactor  = 1.09979
 **********
 **   18 **HESSE 
 **********

 FCN=   5735.808     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2123        6.9904        .17611E-03   -1.5251    
   2  Index         1.8384        .84201        .10544E-01   -.68453    
   3  Normalizat    1.1845        .31598        .37665E-03   -.87082    
   4  Prefactor     1.0998        .17366        .21286E-03   -.89473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29172e-12
Minuit parameter uncertainties:
  1  6.99147
  2  0.848787
  3  0.316494
  4  0.173754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998927': 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) = 5735.808019
delta logL = 0.260882904799

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  5.212e+00  6.991e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.838e+00  8.488e-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:  1.100e+00  1.738e-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.185e+00  3.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 1.84 +/- 0.85
Photon Flux (Free Index): 2.43e-08 +/- 4.41e-08
Energy Flux (Free Index): 2.60e-05 +/- 4.04e-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/998927/cmap_HighResolution_560217601_560476801_4FGL_J1349.5-1131_daily_bin1238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-02', comment='SUCCESS', photon_flux='5.53e-08', energy_flux2='2.60e-05', photon_flux_error='6.32e-08', dlogl='2.61e-01', energy_flux='1.62e-05', photon_flux2='2.43e-08', job_status='DONE', time_completed='2021-09-08 14:41:12.741055', photon_index_error2='0.85', photon_index2='1.84', ts='1.28', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='2.08e-07', energy_flux_error2='4.04e-05', EG='1.16', time_epoch_completed='1631137272.74', return_code='0', job_id='998927', GAL2='1.10', EG2='1.18', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='4.41e-08', ts2='1.80', photon_index='2.49' WHERE bin_id='1238' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:41:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 998927: <4FGL_J1349.5-1131_daily_bin1238> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1238 207.387 -11.5188 560217601 560476801 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 :                                   577.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            650 sec.

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

