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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1225
RA = 207.387, Dec = -11.5188
tmin = 556848001, tmax = 557107201
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='998907', job_status='RUN', time_executed='2021-09-08 14:31:47.306252', time_epoch_executed='1631136707.31' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998907

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998907/ft1_4FGL_J1349.5-1131_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998907/ft2_4FGL_J1349.5-1131_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998907/ft1_4FGL_J1349.5-1131_daily_bin1225.fits outfile=/scratch/kocevski/998907/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1225.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=556848001.0 tmax=557107201.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.73
user 3.43
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998907/ft1_filtered_4FGL_J1349.5-1131_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/998907/ft2_4FGL_J1349.5-1131_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/998907/ltcube_556848001_557107201_4FGL_J1349.5-1131_daily_bin1225.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/998907/ft2_4FGL_J1349.5-1131_daily_bin1225.fits
.....................!
real 16.59
user 16.21
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998907/ft1_filtered_4FGL_J1349.5-1131_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/998907/ft2_4FGL_J1349.5-1131_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/998907/ltcube_556848001_557107201_4FGL_J1349.5-1131_daily_bin1225.fits outfile=/scratch/kocevski/998907/expmap_556848001_557107201_4FGL_J1349.5-1131_daily_bin1225.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/998907/ltcube_556848001_557107201_4FGL_J1349.5-1131_daily_bin1225.fits
.....................!
real 192.76
user 188.29
sys 3.88

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/998907/ft1_filtered_4FGL_J1349.5-1131_daily_bin1225.fits scfile=/scratch/kocevski/998907/ft2_4FGL_J1349.5-1131_daily_bin1225.fits outfile=/scratch/kocevski/998907/cmap_556848001_557107201_4FGL_J1349.5-1131_daily_bin1225.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998907/ft1_filtered_4FGL_J1349.5-1131_daily_bin1225.fits scfile=/scratch/kocevski/998907/ft2_4FGL_J1349.5-1131_daily_bin1225.fits outfile=/scratch/kocevski/998907/cmap_HighResolution_556848001_557107201_4FGL_J1349.5-1131_daily_bin1225.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998907/ft1_filtered_4FGL_J1349.5-1131_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/998907/ft2_4FGL_J1349.5-1131_daily_bin1225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998907/Model_4FGL_J1349.5-1131_daily_bin1225.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/998907/ft1_filtered_4FGL_J1349.5-1131_daily_bin1225.fits.....................!
real 57.29
user 55.84
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0929       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.068       1.0000         .10000E-03   10000.    
     6 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .31771       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6385       1.0000         .10000E-03   10000.    
    12 'norm      '    9.9590       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9768       1.0000         .10000E-03   10000.    
    15 'norm      '    8.0989       1.0000         .10000E-03   10000.    
    16 'norm      '    7.5313       1.0000         .10000E-03   10000.    
    17 'norm      '    23.679       1.0000         .10000E-03   10000.    
    18 'norm      '    22.098       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3755       1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.417       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6158       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .74273       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=   7012.794     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2330 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    12.243        .90712E-02** at limit **
   2  norm          .10000E-03    3.6273        .90712E-02** at limit **
   3  Prefactor     1.0936        5.5487        .11420E-01    .11546E-02
   4  Prefactor     .10000E-03    3.1268        .90712E-02** at limit **
   5  Prefactor     21.067        16.999        .21816E-02    .88061E-03
   6  norm          .10000E-03    .52164        .32491E-01** at limit **
   7  norm          .31998        3.2250        .38228E-01    .86493E-03
   8  norm          .10000E-03    1.8738        .90712E-02** at limit **
   9  Prefactor     .10000E-03    21.091        .90712E-02** at limit **
  10  norm          .10000E-03    10.717        .90712E-02** at limit **
  11  Prefactor     5.6290        10.081        .42293E-02   -.26974E-03
  12  norm          9.9576        5.3445        .31744E-02   -.31697E-02
  13  Prefactor     .10000E-03    2.2389        .90712E-02** at limit **
  14  Prefactor     8.9764        31.988        .33444E-02    .44565E-03
  15  norm          8.0996        5.5199        .35221E-02    .13805E-02
  16  norm          7.5312        3.2693        .36534E-02   -.44158E-02
  17  norm          23.680        13.425        .20579E-02   -.14347E-04
  18  norm          22.098        8.9086        .21302E-02   -.45040E-03
  19  Prefactor     1.3759        20.279        .92859E-02    .32788E-03
  20  Prefactor     37.417        32.629        .16380E-02   -.12844E-03
  21  Normalizat    1.6158        .22843        .67428E-01   -.55444E-04
  22  Prefactor     .74272        .11745        .42967E-01   -.75780E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100006
  norm       = 0.0001
  Prefactor  = 1.09359
  Prefactor  = 0.0001
  Prefactor  = 21.0675
  norm       = 0.0001
  norm       = 0.319983
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 5.62898
  norm       = 9.95764
  Prefactor  = 0.0001
  Prefactor  = 8.97637
  norm       = 8.09958
  norm       = 7.53124
  norm       = 23.6798
  norm       = 22.0976
  Prefactor  = 1.37592
  Prefactor  = 37.4173
  Normalizat = 1.61579
  Prefactor  = 0.742717
 **********
 **   18 **HESSE 
 **********

 FCN=   7012.794     FROM HESSE     STATUS=OK           338 CALLS     2668 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    12.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.6326        .15577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0936        5.4382        .38304E-03   -1.5499    
   4  Prefactor     .10000E-03    3.1859        .14460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.067        17.893        .87263E-04   -1.4790    
   6  norm          .10000E-03    .82089        .11718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .31998        7.8556        .23041E-02   -1.5595    
   8  norm          .10000E-03    1.8779        .11189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.655        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6290        10.052        .16917E-03   -1.5233    
  12  norm          9.9576        5.3415        .12698E-03   -1.5077    
  13  Prefactor     .10000E-03    2.2594        .12229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.9764        31.988        .13377E-03   -1.5109    
  15  norm          8.0996        5.5187        .14088E-03   -1.5139    
  16  norm          7.5312        3.2716        .94225E-04   -1.5159    
  17  norm          23.680        13.425        .82316E-04   -1.4734    
  18  norm          22.098        8.9058        .85208E-04   -1.4767    
  19  Prefactor     1.3759        20.355        .37143E-03   -1.5473    
  20  Prefactor     37.417        32.657        .65521E-04   -1.4484    
  21  Normalizat    1.6158        .26429        .29826E-03   -.74575    
  22  Prefactor     .74272        .13631        .21536E-03   -1.0188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19138e-08
Minuit parameter uncertainties:
  1  0.000544744
  2  1.7602e-06
  3  4.87785
  4  1.40954e-06
  5  17.8971
  6  4.17617e-07
  7  3.17089
  8  3.61702e-06
  9  0.000160664
  10  0.000306838
  11  10.0548
  12  5.34175
  13  1.96205e-08
  14  32.0493
  15  5.51909
  16  3.27165
  17  13.427
  18  8.90636
  19  10.5882
  20  32.6722
  21  0.264516
  22  0.136372
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.962e-08  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:  7.427e-01  1.364e-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.616e+00  2.645e-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: 8.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998907/likelihoodResults_556848001_557107201_4FGL_J1349.5-1131_daily_bin1225.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) = 7012.79654129
delta logL = -0.00210287500704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7012.79443842
delta logL = -1.21335688164e-08

Fit tolerance = 1e-08

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

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

 FCN=   7012.794     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      248 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.886        .12283E-01** at limit **
   2  Index         2.0836        5.8176        .50000       -.31491E-07
   3  Normalizat    1.6158        .13198E-01    .29826E-03    .33691E-03
   4  Prefactor     .74272        .68123E-02    .21536E-03    .49406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08358
  Normalizat = 1.61579
  Prefactor  = 0.742718
 **********
 **   18 **HESSE 
 **********

 FCN=   7012.794     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    192.66        .12826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0836        7.8099        .50000       -.62276    
   3  Normalizat    1.6158        .58197E-01    .59652E-04   -.74575    
   4  Prefactor     .74272        .30039E-01    .43072E-04   -1.0188    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.71681e-09
Minuit parameter uncertainties:
  1  0.000341817
  2  829.132
  3  0.0581996
  4  0.0300395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998907': 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) = 7012.79443643
delta logL = 1.98400630325e-06

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.418e-04  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.084e+00  8.291e+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:  7.427e-01  3.004e-02  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.616e+00  5.820e-02  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/998907/cmap_HighResolution_556848001_557107201_4FGL_J1349.5-1131_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.66e-03', job_status='DONE', photon_flux_upper_limit='8.56e-08', time_completed='2021-09-08 14:42:52.909945', job_id='998907', GAL2='0.74', fit_tolerance='1e-08', EG2='1.62', EG='1.62', time_epoch_completed='1631137372.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.98e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1225' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:42:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 998907: <4FGL_J1349.5-1131_daily_bin1225> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1225 207.387 -11.5188 556848001 557107201 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 :                                   639.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            751 sec.

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

