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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1228
RA = 207.387, Dec = -11.5188
tmin = 557625601, tmax = 557884801
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='998912', job_status='RUN', time_executed='2021-09-08 14:31:48.555869', time_epoch_executed='1631136708.56' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998912

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998912/ft1_4FGL_J1349.5-1131_daily_bin1228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998912/ft2_4FGL_J1349.5-1131_daily_bin1228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998912/ft1_4FGL_J1349.5-1131_daily_bin1228.fits outfile=/scratch/kocevski/998912/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1228.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=557625601.0 tmax=557884801.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.55
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998912/ft2_4FGL_J1349.5-1131_daily_bin1228.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/998912/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1228.fits evtable="EVENTS" outfile="/scratch/kocevski/998912/ft1_filtered_4FGL_J1349.5-1131_daily_bin1228.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.68
user 0.38
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998912/ft1_filtered_4FGL_J1349.5-1131_daily_bin1228.fits" evtable="EVENTS" scfile=/scratch/kocevski/998912/ft2_4FGL_J1349.5-1131_daily_bin1228.fits sctable="SC_DATA" outfile=/scratch/kocevski/998912/ltcube_557625601_557884801_4FGL_J1349.5-1131_daily_bin1228.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/998912/ft2_4FGL_J1349.5-1131_daily_bin1228.fits
.....................!
real 18.13
user 17.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998912/ft1_filtered_4FGL_J1349.5-1131_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/998912/ft2_4FGL_J1349.5-1131_daily_bin1228.fits sctable="SC_DATA" expcube=/scratch/kocevski/998912/ltcube_557625601_557884801_4FGL_J1349.5-1131_daily_bin1228.fits outfile=/scratch/kocevski/998912/expmap_557625601_557884801_4FGL_J1349.5-1131_daily_bin1228.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/998912/ltcube_557625601_557884801_4FGL_J1349.5-1131_daily_bin1228.fits
.....................!
real 192.29
user 187.05
sys 4.60

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/998912/ft1_filtered_4FGL_J1349.5-1131_daily_bin1228.fits scfile=/scratch/kocevski/998912/ft2_4FGL_J1349.5-1131_daily_bin1228.fits outfile=/scratch/kocevski/998912/cmap_557625601_557884801_4FGL_J1349.5-1131_daily_bin1228.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.58
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998912/ft1_filtered_4FGL_J1349.5-1131_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/998912/ft2_4FGL_J1349.5-1131_daily_bin1228.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998912/Model_4FGL_J1349.5-1131_daily_bin1228.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/998912/ft1_filtered_4FGL_J1349.5-1131_daily_bin1228.fits.....................!
real 81.25
user 79.64
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.390       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9649       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1121       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.855       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12930E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.808       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10622E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.480       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.812       1.0000         .10000E-03   10000.    
    12 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.820       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    22.838       1.0000         .10000E-03   10000.    
    17 'norm      '    17.446       1.0000         .10000E-03   10000.    
    18 'norm      '    77.892       1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.211       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6007       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76052       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1451       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=   10980.02     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2465 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.390        14.897        .85085E-07   -.57508E-05
   2  norm          .10000E-03    2.9666       -.33695E-07** at limit **
   3  Prefactor     2.9648        7.0049       -.56446E-06   -.16642E-03
   4  Prefactor     1.1126        4.3502        .15177E-05   -.39219E-03
   5  Prefactor     26.863        19.105        .17328E-05   -.15753E-04
   6  norm          .10000E-03    .35079       -.13508E-08** at limit **
   7  norm          .10001E-03    2.1171        .87802E-06** at limit **
   8  norm          12.810        8.6462       -.22689E-05   -.60831E-03
   9  Prefactor     .10000E-03    14.846        .24848E-06** at limit **
  10  norm          14.480        22.339       -.20560E-06   -.10960E-04
  11  Prefactor     19.812        10.449        .57642E-06    .85092E-04
  12  norm          .10000E-03    3.2185        .65888E-07** at limit **
  13  Prefactor     .10000E-03    1.8524        .31149E-07** at limit **
  14  Prefactor     18.817        29.305       -.20371E-05   -.75839E-04
  15  norm          .10000E-03    2.3227        .16583E-07** at limit **
  16  norm          22.838        4.0488        .34089E-07   -.32227E-04
  17  norm          17.447        9.9944        .21499E-07    .84313E-05
  18  norm          77.892        12.752        .31778E-07    .85573E-05
  19  Prefactor     38.211        21.488        .23151E-06    .11632E-04
  20  Prefactor     4.6006        8.3234        .17290E-05   -.43204E-03
  21  Normalizat    .76050        .21789       -.17438E-05   -.94311E-04
  22  Prefactor     1.1451        .10942        .31300E-06   -.27394E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.3904
  norm       = 0.0001
  Prefactor  = 2.96485
  Prefactor  = 1.11263
  Prefactor  = 26.8634
  norm       = 0.0001
  norm       = 0.000100007
  norm       = 12.81
  Prefactor  = 0.0001
  norm       = 14.4801
  Prefactor  = 19.8121
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8166
  norm       = 0.0001
  norm       = 22.8384
  norm       = 17.4466
  norm       = 77.892
  Prefactor  = 38.211
  Prefactor  = 4.60064
  Normalizat = 0.760496
  Prefactor  = 1.1451
 **********
 **   18 **HESSE 
 **********

 FCN=   10980.02     FROM HESSE     STATUS=OK           348 CALLS     2813 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.390        14.894        .88700E-04   -1.4805    
   2  norm          .10000E-03    2.9686        .17626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9648        7.0052        .23582E-03   -1.5364    
   4  Prefactor     1.1126        4.4080        .42643E-03   -1.5497    
   5  Prefactor     26.863        18.531        .77304E-04   -1.4671    
   6  norm          .10000E-03    .35638        .60560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    9.0939        .23990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.810        8.7585        .11192E-03   -1.4992    
   9  Prefactor     .10000E-03    14.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.480        22.342        .10526E-03   -1.4947    
  11  Prefactor     19.812        10.414        .89984E-04   -1.4817    
  12  norm          .10000E-03    3.2884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8674        .13924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.817        29.412        .92323E-04   -1.4840    
  15  norm          .10000E-03    2.3507        .15593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          22.838        4.0502        .82766E-04   -1.4752    
  17  norm          17.447        9.9952        .95888E-04   -1.4872    
  18  norm          77.892        12.748        .45501E-04   -1.3941    
  19  Prefactor     38.211        21.475        .64839E-04   -1.4471    
  20  Prefactor     4.6006        8.5101        .93828E-03   -1.5279    
  21  Normalizat    .76050        .23741        .43789E-03   -1.0155    
  22  Prefactor     1.1451        .12125        .19307E-03   -.88038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54243e-09
Minuit parameter uncertainties:
  1  14.8965
  2  6.31394e-07
  3  7.0071
  4  4.4093
  5  18.5346
  6  7.09524e-07
  7  0.000490888
  8  8.75939
  9  5.60046e-05
  10  22.3549
  11  10.4152
  12  1.10605e-05
  13  1.28978e-05
  14  29.4347
  15  5.91435e-06
  16  4.05023
  17  9.99615
  18  12.7482
  19  21.4797
  20  8.51234
  21  0.237728
  22  0.121278
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.290e-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:  1.145e+00  1.213e-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:  7.605e-01  2.377e-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: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998912/likelihoodResults_557625601_557884801_4FGL_J1349.5-1131_daily_bin1228.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) = 10980.0210661
delta logL = -0.00254928457434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10980.0185177
delta logL = -8.64803951117e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5030       1.0000          .0000       10.000    
     3 'Normalizat'    .76046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1450       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=   10980.02     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      234 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5964        .13966E-02** at limit **
   2  Index         2.5120        6.2362        .50000       -.42345E-04
   3  Normalizat    .76049        .22323        .43789E-03   -.31202E-03
   4  Prefactor     1.1451        .11960        .19307E-03   -.28163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.51199
  Normalizat = 0.760492
  Prefactor  = 1.1451
 **********
 **   18 **HESSE 
 **********

 FCN=   10980.02     FROM HESSE     STATUS=OK            29 CALLS      263 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9020        .27931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5120        6.2536        .50000       -.52083    
   3  Normalizat    .76049        .22333        .17516E-04   -1.0155    
   4  Prefactor     1.1451        .11965        .38614E-04   -.88038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40013e-09
Minuit parameter uncertainties:
  1  0.000161782
  2  4.36395
  3  0.2236
  4  0.119683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998912': 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) = 10980.0185166
delta logL = 1.73948137672e-07

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.618e-04  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.512e+00  4.364e+00  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  7.359e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.145e+00  1.197e-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:  7.605e-01  2.236e-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/998912/cmap_HighResolution_557625601_557884801_4FGL_J1349.5-1131_daily_bin1228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.82e-03', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-08 14:46:27.670335', job_id='998912', GAL2='1.15', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631137587.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1228' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:46:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 998912: <4FGL_J1349.5-1131_daily_bin1228> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1228> 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) <bullet0167>, 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:46:28 2021
Results reported at Wed Sep  8 14:46:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1228 207.387 -11.5188 557625601 557884801 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 :                                   844.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            966 sec.

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

