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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1045
RA = 207.387, Dec = -11.5188
tmin = 510192001, tmax = 510451201
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='997925', job_status='RUN', time_executed='2021-09-08 14:29:18.923060', time_epoch_executed='1631136558.92' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1045'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997925

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997925/ft1_4FGL_J1349.5-1131_daily_bin1045.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997925/ft2_4FGL_J1349.5-1131_daily_bin1045.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997925/ft1_4FGL_J1349.5-1131_daily_bin1045.fits outfile=/scratch/kocevski/997925/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1045.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=510192001.0 tmax=510451201.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 4.35
user 4.10
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/997925/ft2_4FGL_J1349.5-1131_daily_bin1045.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/997925/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1045.fits evtable="EVENTS" outfile="/scratch/kocevski/997925/ft1_filtered_4FGL_J1349.5-1131_daily_bin1045.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/997925/ft1_filtered_4FGL_J1349.5-1131_daily_bin1045.fits" evtable="EVENTS" scfile=/scratch/kocevski/997925/ft2_4FGL_J1349.5-1131_daily_bin1045.fits sctable="SC_DATA" outfile=/scratch/kocevski/997925/ltcube_510192001_510451201_4FGL_J1349.5-1131_daily_bin1045.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/997925/ft2_4FGL_J1349.5-1131_daily_bin1045.fits
.....................!
real 15.88
user 15.41
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997925/ft1_filtered_4FGL_J1349.5-1131_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/997925/ft2_4FGL_J1349.5-1131_daily_bin1045.fits sctable="SC_DATA" expcube=/scratch/kocevski/997925/ltcube_510192001_510451201_4FGL_J1349.5-1131_daily_bin1045.fits outfile=/scratch/kocevski/997925/expmap_510192001_510451201_4FGL_J1349.5-1131_daily_bin1045.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/997925/ltcube_510192001_510451201_4FGL_J1349.5-1131_daily_bin1045.fits
.....................!
real 197.07
user 190.06
sys 5.15

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/997925/ft1_filtered_4FGL_J1349.5-1131_daily_bin1045.fits scfile=/scratch/kocevski/997925/ft2_4FGL_J1349.5-1131_daily_bin1045.fits outfile=/scratch/kocevski/997925/cmap_510192001_510451201_4FGL_J1349.5-1131_daily_bin1045.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/997925/ft1_filtered_4FGL_J1349.5-1131_daily_bin1045.fits scfile=/scratch/kocevski/997925/ft2_4FGL_J1349.5-1131_daily_bin1045.fits outfile=/scratch/kocevski/997925/cmap_HighResolution_510192001_510451201_4FGL_J1349.5-1131_daily_bin1045.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/997925/ft1_filtered_4FGL_J1349.5-1131_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/997925/ft2_4FGL_J1349.5-1131_daily_bin1045.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997925/Model_4FGL_J1349.5-1131_daily_bin1045.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/997925/ft1_filtered_4FGL_J1349.5-1131_daily_bin1045.fits.....................!
real 49.69
user 47.81
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.545       1.0000         .10000E-03   10000.    
     2 'norm      '    9.6534       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2029       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.764       1.0000         .10000E-03   10000.    
     6 'norm      '    1.9693       1.0000         .10000E-03   10000.    
     7 'norm      '    .12829E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.2405       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.034       1.0000         .10000E-03   10000.    
    10 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.641       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2747       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.190       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4385       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.3839       1.0000         .10000E-03   10000.    
    18 'norm      '    .24351E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.365       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.031       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1623       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89717       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=   5800.674     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2394 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.542        15.636        .23751E-06    .70671E-04
   2  norm          9.6545        11.537       -.14201E-06   -.77500E-05
   3  Prefactor     .10000E-03    5.8361       -.14925E-06** at limit **
   4  Prefactor     2.2014        20.448        .12577E-05    .95302E-04
   5  Prefactor     33.765        26.112        .27313E-06   -.12737E-03
   6  norm          1.9694        1.7285        .21320E-07    .24383E-03
   7  norm          .10000E-03    3.1889       -.36718E-06** at limit **
   8  norm          6.2401        11.389        .30304E-06   -.10605E-04
   9  Prefactor     10.030        14.064        .47407E-06    .94018E-04
  10  norm          .10000E-03    9.8742        .73624E-06** at limit **
  11  Prefactor     11.644        16.511       -.44472E-06   -.12181E-04
  12  norm          3.2744        5.8249        .27775E-06    .24341E-03
  13  Prefactor     .10000E-03    2.8783       -.12799E-06** at limit **
  14  Prefactor     26.183        56.900        .96855E-06    .33319E-04
  15  norm          3.4380        6.4680        .36578E-06    .20085E-03
  16  norm          .10000E-03    1.5688        .53872E-08** at limit **
  17  norm          5.3845        17.830        .20250E-06    .25338E-04
  18  norm          .10000E-03    10.660        .55179E-05** at limit **
  19  Prefactor     17.377        24.529       -.12813E-05   -.18812E-03
  20  Prefactor     26.039        26.474       -.86602E-06   -.86019E-04
  21  Normalizat    1.1622        .26121       -.40482E-07   -.63941E-04
  22  Prefactor     .89726        .12928        .26718E-06   -.60369E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.5425
  norm       = 9.65445
  Prefactor  = 0.0001
  Prefactor  = 2.20138
  Prefactor  = 33.7646
  norm       = 1.96939
  norm       = 0.0001
  norm       = 6.24006
  Prefactor  = 10.03
  norm       = 0.0001
  Prefactor  = 11.6438
  norm       = 3.27444
  Prefactor  = 0.0001
  Prefactor  = 26.1828
  norm       = 3.43795
  norm       = 0.0001
  norm       = 5.38451
  norm       = 0.000100001
  Prefactor  = 17.3774
  Prefactor  = 26.0391
  Normalizat = 1.16221
  Prefactor  = 0.897258
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.674     FROM HESSE     STATUS=OK           354 CALLS     2748 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.542        15.662        .95618E-04   -1.4870    
   2  norm          9.6545        11.517        .12898E-03   -1.5086    
   3  Prefactor     .10000E-03    5.8605        .17969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2014        20.475        .27720E-03   -1.5411    
   5  Prefactor     33.765        26.517        .68963E-04   -1.4545    
   6  norm          1.9694        1.7215        .88322E-04   -1.5427    
   7  norm          .10000E-03    16.082        .23013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.2401        11.270        .16069E-03   -1.5208    
   9  Prefactor     10.030        14.042        .12650E-03   -1.5074    
  10  norm          .10000E-03    9.8779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.644        16.436        .11742E-03   -1.5025    
  12  norm          3.2744        5.8159        .22377E-03   -1.5346    
  13  Prefactor     .10000E-03    2.8977        .12615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.183        56.831        .78278E-04   -1.4684    
  15  norm          3.4380        6.4770        .21812E-03   -1.5337    
  16  norm          .10000E-03    1.6175        .18611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.3845        17.829        .17319E-03   -1.5244    
  18  norm          .10000E-03    10.730        .29307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.377        24.515        .96113E-04   -1.4874    
  20  Prefactor     26.039        26.459        .78516E-04   -1.4687    
  21  Normalizat    1.1622        .30495        .33069E-03   -.87779    
  22  Prefactor     .89726        .15224        .19463E-03   -.96237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21555e-10
Minuit parameter uncertainties:
  1  15.6653
  2  11.5192
  3  1.94412e-05
  4  13.433
  5  26.5265
  6  1.72152
  7  6.46505e-05
  8  11.2737
  9  14.0467
  10  6.48635e-05
  11  16.4425
  12  5.8169
  13  1.54877e-05
  14  56.9485
  15  6.47832
  16  2.58593e-06
  17  17.847
  18  0.000177794
  19  24.5294
  20  26.471
  21  0.305414
  22  0.152313
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.549e-05  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:  8.973e-01  1.523e-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.162e+00  3.054e-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: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/997925/likelihoodResults_510192001_510451201_4FGL_J1349.5-1131_daily_bin1045.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) = 5800.67563044
delta logL = -0.00164294918613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5800.67398753
delta logL = -3.60842022928e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4864       1.0000          .0000       10.000    
     3 'Normalizat'    1.1622       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89729       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=   5800.674     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    140.53        .12645E-02** at limit **
   2  Index         2.4266        8.0249        .50000        .16053E-04
   3  Normalizat    1.1622        .46223E-01    .33070E-03   -.31490E-04
   4  Prefactor     .89726        .24393E-01    .19463E-03   -.42875E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5800.674     FROM SIMPLEX   STATUS=UNCHANGED    146 CALLS      384 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    140.53        .31252E-03** at limit **
   2  Index         2.4266        8.0249        .67568E-04    .16053E-04
   3  Normalizat    1.1622        .46223E-01    .83598E-06   -.31490E-04
   4  Prefactor     .89726        .24393E-01    .12979E-06   -.42875E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5800.674     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      422 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    614.62        .25289E-03** at limit **
   2  Index         2.2856        6.8195        .50000        .13461E-07
   3  Normalizat    1.1622        .15293        .13228E-04    .17928E-03
   4  Prefactor     .89726        .80630E-01    .77851E-05    .31426E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.28561
  Normalizat = 1.16221
  Prefactor  = 0.897258
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.674     FROM HESSE     STATUS=OK            29 CALLS      451 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2511        .50578E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2856        5.4708        .50000       -.57386    
   3  Normalizat    1.1622        .27918        .26456E-05   -.87779    
   4  Prefactor     .89726        .14743        .15570E-05   -.96237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62613e-11
Minuit parameter uncertainties:
  1  2.42648e-05
  2  112.872
  3  0.279541
  4  0.147493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997925': 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) = 5800.67398692
delta logL = 5.74975274503e-07

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.426e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.286e+00  1.129e+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:  8.973e-01  1.475e-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.162e+00  2.795e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/997925/cmap_HighResolution_510192001_510451201_4FGL_J1349.5-1131_daily_bin1045.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.63e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-08 14:40:35.208010', job_id='997925', GAL2='0.90', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631137235.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='5.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1045' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:40:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 997925: <4FGL_J1349.5-1131_daily_bin1045> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1045> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 14:25:18 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:25:28 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:25:28 2021
Terminated at Wed Sep  8 14:40:35 2021
Results reported at Wed Sep  8 14:40:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1045 207.387 -11.5188 510192001 510451201 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 :                                   598.45 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             217.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            917 sec.

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

