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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1177
RA = 207.387, Dec = -11.5188
tmin = 544406401, tmax = 544665601
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='998072', job_status='RUN', time_executed='2021-09-08 14:26:43.725820', time_epoch_executed='1631136403.73' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998072

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998072/ft1_4FGL_J1349.5-1131_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998072/ft2_4FGL_J1349.5-1131_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998072/ft1_4FGL_J1349.5-1131_daily_bin1177.fits outfile=/scratch/kocevski/998072/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1177.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=544406401.0 tmax=544665601.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 7.80
user 7.43
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998072/ft1_filtered_4FGL_J1349.5-1131_daily_bin1177.fits" evtable="EVENTS" scfile=/scratch/kocevski/998072/ft2_4FGL_J1349.5-1131_daily_bin1177.fits sctable="SC_DATA" outfile=/scratch/kocevski/998072/ltcube_544406401_544665601_4FGL_J1349.5-1131_daily_bin1177.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/998072/ft2_4FGL_J1349.5-1131_daily_bin1177.fits
.....................!
real 9.97
user 9.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998072/ft1_filtered_4FGL_J1349.5-1131_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/998072/ft2_4FGL_J1349.5-1131_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/998072/ltcube_544406401_544665601_4FGL_J1349.5-1131_daily_bin1177.fits outfile=/scratch/kocevski/998072/expmap_544406401_544665601_4FGL_J1349.5-1131_daily_bin1177.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/998072/ltcube_544406401_544665601_4FGL_J1349.5-1131_daily_bin1177.fits
.....................!
real 192.34
user 187.16
sys 4.40

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/998072/ft1_filtered_4FGL_J1349.5-1131_daily_bin1177.fits scfile=/scratch/kocevski/998072/ft2_4FGL_J1349.5-1131_daily_bin1177.fits outfile=/scratch/kocevski/998072/cmap_544406401_544665601_4FGL_J1349.5-1131_daily_bin1177.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998072/ft1_filtered_4FGL_J1349.5-1131_daily_bin1177.fits scfile=/scratch/kocevski/998072/ft2_4FGL_J1349.5-1131_daily_bin1177.fits outfile=/scratch/kocevski/998072/cmap_HighResolution_544406401_544665601_4FGL_J1349.5-1131_daily_bin1177.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998072/ft1_filtered_4FGL_J1349.5-1131_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/998072/ft2_4FGL_J1349.5-1131_daily_bin1177.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998072/Model_4FGL_J1349.5-1131_daily_bin1177.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/998072/ft1_filtered_4FGL_J1349.5-1131_daily_bin1177.fits.....................!
real 62.42
user 60.95
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.777       1.0000         .10000E-03   10000.    
     2 'norm      '    11.061       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17460E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.7377       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    52.527       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6555       1.0000         .10000E-03   10000.    
    16 'norm      '    8.5588       1.0000         .10000E-03   10000.    
    17 'norm      '    6.7378       1.0000         .10000E-03   10000.    
    18 'norm      '    .30830E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8437       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1253       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0149       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=   7969.059     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2097 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.777        15.859       -.41447E-06    .19991E-04
   2  norm          11.061        11.964       -.59234E-07   -.38956E-05
   3  Prefactor     .10000E-03    12.249       -.25236E-06** at limit **
   4  Prefactor     .10001E-03    4.7120       -.14146E-06** at limit **
   5  Prefactor     .10000E-03    4.3929       -.47230E-06** at limit **
   6  norm          .10000E-03    .81884       -.11935E-06** at limit **
   7  norm          3.7386        2.4512       -.14566E-06   -.15899E-03
   8  norm          .10000E-03    3.1913        .14038E-05** at limit **
   9  Prefactor     .10000E-03    3.0937       -.12425E-05** at limit **
  10  norm          52.527        40.926       -.17715E-06    .33950E-05
  11  Prefactor     .10000E-03    5.0972       -.94912E-06** at limit **
  12  norm          .10000E-03    1.2876       -.21179E-08** at limit **
  13  Prefactor     .10000E-03    2.2273        .92676E-07** at limit **
  14  Prefactor     .10000E-03    8.2936       -.77505E-06** at limit **
  15  norm          2.6556        5.6463       -.90654E-06   -.52709E-03
  16  norm          8.5584        3.0076       -.59257E-06    .58335E-03
  17  norm          6.7378        8.6031       -.68966E-07   -.28029E-06
  18  norm          .10027E-03    4.0564        .46707E-06** at limit **
  19  Prefactor     2.8335        29.854       -.22821E-04    .95135E-04
  20  Prefactor     .10000E-03    5.7078        .17160E-05** at limit **
  21  Normalizat    1.1253        .20866        .24825E-05    .64181E-04
  22  Prefactor     1.0149        .10548        .25549E-06    .23433E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.7771
  norm       = 11.0606
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.73862
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 52.5273
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.6556
  norm       = 8.55842
  norm       = 6.73779
  norm       = 0.000100274
  Prefactor  = 2.83351
  Prefactor  = 0.0001
  Normalizat = 1.12531
  Prefactor  = 1.01493
 **********
 **   18 **HESSE 
 **********

 FCN=   7969.059     FROM HESSE     STATUS=OK           344 CALLS     2441 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.777        15.862        .94991E-04   -1.4864    
   2  norm          11.061        11.937        .12046E-03   -1.5043    
   3  Prefactor     .10000E-03    12.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    20.393        .36853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6350        .15573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.7386        2.4457        .10932E-03   -1.5321    
   8  norm          .10000E-03    3.2200        .15515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.0978        .15328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          52.527        40.919        .55339E-04   -1.4257    
  11  Prefactor     .10000E-03    5.1585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.3163        .98909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2776        .25952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6556        5.6950        .25015E-03   -1.5382    
  16  norm          8.5584        2.9958        .87487E-04   -1.5123    
  17  norm          6.7378        8.6006        .15458E-03   -1.5189    
  18  norm          .10027E-03    35.824        .34643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8335        30.602        .24112E-03   -1.5371    
  20  Prefactor     .10000E-03    5.7009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1253        .23792        .32984E-03   -.88943    
  22  Prefactor     1.0149        .12288        .18190E-03   -.92234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89355e-09
Minuit parameter uncertainties:
  1  15.8658
  2  11.9399
  3  4.88604e-05
  4  0.00086741
  5  3.77375e-06
  6  2.40496e-05
  7  2.44576
  8  3.26471e-05
  9  1.5455e-05
  10  40.9405
  11  2.96256e-06
  12  2.75246e-06
  13  1.20996e-06
  14  1.75445e-05
  15  5.69612
  16  2.99587
  17  8.60221
  18  0.00626591
  19  18.6355
  20  4.11168e-05
  21  0.238147
  22  0.122917
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.210e-06  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.015e+00  1.229e-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.125e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.387 -11.519
Photon Flux Upper Limit: 6.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998072/likelihoodResults_544406401_544665601_4FGL_J1349.5-1131_daily_bin1177.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): 102
logL (Free Index) = 7969.06079278
delta logL = -0.00209360568442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7969.05870157
delta logL = -2.39370001509e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4988       1.0000          .0000       10.000    
     3 'Normalizat'    1.1249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0151       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7969.059     FROM MIGRAD    STATUS=FAILED        87 CALLS      243 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10040E-03    489.58        .25968E-03** at limit **
   2  Index         2.5540        6.8723        .50000       -.14953E-04
   3  Normalizat    1.1253        .13794        .32984E-03    .60628E-04
   4  Prefactor     1.0149        .72389E-01    .18190E-03    .87326E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7969.059     FROM SIMPLEX   STATUS=PROGRESS     154 CALLS      397 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    489.58        .17151E-03** at limit **
   2  Index         2.5540        6.8723        .17390E-04   -.14953E-04
   3  Normalizat    1.1253        .13794        .10712E-05    .60628E-04
   4  Prefactor     1.0149        .72389E-01    .35040E-06    .87326E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7969.059     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      440 TOTAL
                     EDM=   .59E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0207        .51936E-04** at limit **
   2  Index         2.7728        7.6695        .50000        .26921E-07
   3  Normalizat    1.1253        .23124        .13194E-04   -.18957E-05
   4  Prefactor     1.0149        .12263        .36379E-04   -.41876E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.77283
  Normalizat = 1.12531
  Prefactor  = 1.01493
 **********
 **   18 **HESSE 
 **********

 FCN=   7969.059     FROM HESSE     STATUS=OK            29 CALLS      469 TOTAL
                     EDM=   .53E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3630        .10387E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7728        6.0289        .50000       -.46166    
   3  Normalizat    1.1253        .23145        .26387E-05   -.88943    
   4  Prefactor     1.0149        .12272        .72759E-05   -.92234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26959e-13
Minuit parameter uncertainties:
  1  5.20191e-07
  2  119.897
  3  0.231657
  4  0.122751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998072': 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) = 7969.05869857
delta logL = 6.01386091148e-07

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.202e-07  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.773e+00  1.199e+02  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.015e+00  1.228e-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.125e+00  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/998072/cmap_HighResolution_544406401_544665601_4FGL_J1349.5-1131_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-03', job_status='DONE', photon_flux_upper_limit='6.82e-08', time_completed='2021-09-08 14:38:22.844097', job_id='998072', GAL2='1.01', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631137102.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1177' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:38:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 998072: <4FGL_J1349.5-1131_daily_bin1177> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1177> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 14:25:32 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:26:09 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:26:09 2021
Terminated at Wed Sep  8 14:38:23 2021
Results reported at Wed Sep  8 14:38:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1177 207.387 -11.5188 544406401 544665601 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 :                                   693.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            771 sec.

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

