/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 140 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 = 7387
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1349.5-1131_daily_bin428
RA = 207.387, Dec = -11.5188
tmin = 350265601, tmax = 350524801
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='993930', job_status='RUN', time_executed='2021-09-08 14:13:08.955141', time_epoch_executed='1631135588.96' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993930

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993930/ft1_4FGL_J1349.5-1131_daily_bin428.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993930/ft2_4FGL_J1349.5-1131_daily_bin428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993930/ft1_4FGL_J1349.5-1131_daily_bin428.fits outfile=/scratch/kocevski/993930/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin428.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=350265601.0 tmax=350524801.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.38
user 3.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993930/ft1_filtered_4FGL_J1349.5-1131_daily_bin428.fits" evtable="EVENTS" scfile=/scratch/kocevski/993930/ft2_4FGL_J1349.5-1131_daily_bin428.fits sctable="SC_DATA" outfile=/scratch/kocevski/993930/ltcube_350265601_350524801_4FGL_J1349.5-1131_daily_bin428.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/993930/ft2_4FGL_J1349.5-1131_daily_bin428.fits
.....................!
real 15.70
user 15.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993930/ft1_filtered_4FGL_J1349.5-1131_daily_bin428.fits evtable="EVENTS" scfile=/scratch/kocevski/993930/ft2_4FGL_J1349.5-1131_daily_bin428.fits sctable="SC_DATA" expcube=/scratch/kocevski/993930/ltcube_350265601_350524801_4FGL_J1349.5-1131_daily_bin428.fits outfile=/scratch/kocevski/993930/expmap_350265601_350524801_4FGL_J1349.5-1131_daily_bin428.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/993930/ltcube_350265601_350524801_4FGL_J1349.5-1131_daily_bin428.fits
.....................!
real 191.55
user 186.16
sys 4.87

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/993930/ft1_filtered_4FGL_J1349.5-1131_daily_bin428.fits scfile=/scratch/kocevski/993930/ft2_4FGL_J1349.5-1131_daily_bin428.fits outfile=/scratch/kocevski/993930/cmap_350265601_350524801_4FGL_J1349.5-1131_daily_bin428.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993930/ft1_filtered_4FGL_J1349.5-1131_daily_bin428.fits scfile=/scratch/kocevski/993930/ft2_4FGL_J1349.5-1131_daily_bin428.fits outfile=/scratch/kocevski/993930/cmap_HighResolution_350265601_350524801_4FGL_J1349.5-1131_daily_bin428.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3194       1.0000         .10000E-03   10000.    
     2 'norm      '    .10228E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8923       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4273       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.474       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0013       1.0000         .10000E-03   10000.    
    10 'norm      '    17.550       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.606       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4144       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.345       1.0000         .10000E-03   10000.    
    15 'norm      '    .17684       1.0000         .10000E-03   10000.    
    16 'norm      '    3.2178       1.0000         .10000E-03   10000.    
    17 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11235E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11246E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3529       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94151       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=   6705.916     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2367 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3195        8.6693        .13372E-05   -.17204E-03
   2  norm          .10000E-03    4.5073        .17038E-07** at limit **
   3  Prefactor     1.8892        20.574        .45421E-05   -.21536E-03
   4  Prefactor     7.4265        9.0060        .10555E-05   -.16672E-03
   5  Prefactor     .10000E-03    6.3056       -.63852E-07** at limit **
   6  norm          .10000E-03    .33692        .10804E-07** at limit **
   7  norm          .10000E-03    1.5105        .29603E-07** at limit **
   8  norm          14.469        8.1080       -.14435E-05   -.10385E-03
   9  Prefactor     3.9510        25.676        .50827E-05   -.56177E-04
  10  norm          17.544        20.020        .12141E-05    .21910E-05
  11  Prefactor     28.606        19.748       -.17569E-05   -.86345E-04
  12  norm          .10000E-03    2.0614       -.86937E-07** at limit **
  13  Prefactor     4.4395        6.0554       -.84052E-06   -.48207E-03
  14  Prefactor     53.365        54.060        .16659E-04   -.64422E-05
  15  norm          .69861E-01    7.6819        .10629E-06    .37965E-05
  16  norm          3.2179        2.3223        .59304E-07   -.14539E-03
  17  norm          .10000E-03    4.7340       -.22551E-07** at limit **
  18  norm          .10000E-03    1.9122       -.10515E-07** at limit **
  19  Prefactor     .10000E-03    8.5321        .18310E-07** at limit **
  20  Prefactor     .10000E-03    11.396        .13959E-06** at limit **
  21  Normalizat    1.3530        .23659       -.79631E-06   -.82609E-04
  22  Prefactor     .94164        .12388       -.77091E-06   -.71280E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.31954
  norm       = 0.0001
  Prefactor  = 1.88924
  Prefactor  = 7.4265
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.4693
  Prefactor  = 3.951
  norm       = 17.5444
  Prefactor  = 28.6063
  norm       = 0.0001
  Prefactor  = 4.43949
  Prefactor  = 53.3653
  norm       = 0.0698611
  norm       = 3.21795
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.35303
  Prefactor  = 0.941639
 **********
 **   18 **HESSE 
 **********

 FCN=   6705.916     FROM HESSE     STATUS=OK           352 CALLS     2719 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3195        8.6276        .19383E-03   -1.5292    
   2  norm          .10000E-03    4.5131        .16979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8892        19.839        .30246E-03   -1.5433    
   4  Prefactor     7.4265        8.9928        .14716E-03   -1.5163    
   5  Prefactor     .10000E-03    6.3108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .34155        .46398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5183        .98076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.469        8.0774        .10528E-03   -1.4947    
   9  Prefactor     3.9510        24.393        .20162E-03   -1.5310    
  10  norm          17.544        20.020        .95605E-04   -1.4870    
  11  Prefactor     28.606        19.356        .74907E-04   -1.4638    
  12  norm          .10000E-03    2.0704        .11480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4395        6.1444        .19167E-03   -1.5287    
  14  Prefactor     53.365        54.247        .54916E-04   -1.4246    
  15  norm          .69861E-01    10.863        .56524E-01   -1.5655    
  16  norm          3.2179        2.3214        .10195E-03   -1.5349    
  17  norm          .10000E-03    4.7384        .17402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.9149        .11058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.5443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3530        .27625        .31956E-03   -.81997    
  22  Prefactor     .94164        .14487        .20102E-03   -.94701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09921e-09
Minuit parameter uncertainties:
  1  8.63005
  2  1.17583e-06
  3  12.2492
  4  8.99446
  5  1.35562e-07
  6  4.23567e-07
  7  6.95206e-06
  8  8.07805
  9  19.6461
  10  20.0277
  11  19.3599
  12  1.23308e-05
  13  6.14526
  14  54.2969
  15  1.74136
  16  2.32142
  17  1.80339e-06
  18  1.40812e-06
  19  6.27442e-06
  20  5.27038e-06
  21  0.276554
  22  0.144928
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.416e-01  1.449e-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.353e+00  2.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/993930/likelihoodResults_350265601_350524801_4FGL_J1349.5-1131_daily_bin428.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6705.90834719
delta logL = 0.00751657261571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6705.9029547
delta logL = 0.0129090705996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7650       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7037       1.0000          .0000       10.000    
     3 'Normalizat'    1.3450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94487       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6705.903     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      247 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7651        8.7218        .91011E-03   -.29512E-03
   2  Index         2.7041        1.7364        .10272E-01    .12205E-04
   3  Normalizat    1.3452        .27357        .32033E-03   -.11357E-05
   4  Prefactor     .94478        .14545        .20073E-03   -.45310E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.76509
  Index      = 2.70406
  Normalizat = 1.34516
  Prefactor  = 0.944779
 **********
 **   18 **HESSE 
 **********

 FCN=   6705.903     FROM HESSE     STATUS=OK            27 CALLS      274 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7651        6.7792        .36404E-04   -1.5320    
   2  Index         2.7041        1.3628        .41086E-03   -.47708    
   3  Normalizat    1.3452        .27238        .12813E-04   -.82228    
   4  Prefactor     .94478        .14469        .80291E-05   -.94594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27492e-10
Minuit parameter uncertainties:
  1  6.78059
  2  1.38517
  3  0.272673
  4  0.144746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993930': 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) = 6705.90295437
delta logL = 0.0129093922014

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  3.765e+00  6.781e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.704e+00  1.385e+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:  9.448e-01  1.447e-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.345e+00  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/993930/cmap_HighResolution_350265601_350524801_4FGL_J1349.5-1131_daily_bin428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', job_status='DONE', photon_flux_upper_limit='1.61e-07', time_completed='2021-09-08 14:23:38.310872', job_id='993930', GAL2='0.94', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1631136218.31', return_code2='0', ts='0.87', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.29e-02', ts2='0.90', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='428' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:23:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 993930: <4FGL_J1349.5-1131_daily_bin428> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin428 207.387 -11.5188 350265601 350524801 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 :                                   627.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            796 sec.

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

