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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1207
RA = 207.387, Dec = -11.5188
tmin = 552182401, tmax = 552441601
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='998109', job_status='RUN', time_executed='2021-09-08 14:28:04.432636', time_epoch_executed='1631136484.43' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998109

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998109/ft1_4FGL_J1349.5-1131_daily_bin1207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998109/ft2_4FGL_J1349.5-1131_daily_bin1207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998109/ft1_4FGL_J1349.5-1131_daily_bin1207.fits outfile=/scratch/kocevski/998109/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1207.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=552182401.0 tmax=552441601.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.85
user 3.52
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998109/ft2_4FGL_J1349.5-1131_daily_bin1207.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/998109/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1207.fits evtable="EVENTS" outfile="/scratch/kocevski/998109/ft1_filtered_4FGL_J1349.5-1131_daily_bin1207.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.54
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998109/ft1_filtered_4FGL_J1349.5-1131_daily_bin1207.fits" evtable="EVENTS" scfile=/scratch/kocevski/998109/ft2_4FGL_J1349.5-1131_daily_bin1207.fits sctable="SC_DATA" outfile=/scratch/kocevski/998109/ltcube_552182401_552441601_4FGL_J1349.5-1131_daily_bin1207.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/998109/ft2_4FGL_J1349.5-1131_daily_bin1207.fits
.....................!
real 17.55
user 16.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998109/ft1_filtered_4FGL_J1349.5-1131_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/998109/ft2_4FGL_J1349.5-1131_daily_bin1207.fits sctable="SC_DATA" expcube=/scratch/kocevski/998109/ltcube_552182401_552441601_4FGL_J1349.5-1131_daily_bin1207.fits outfile=/scratch/kocevski/998109/expmap_552182401_552441601_4FGL_J1349.5-1131_daily_bin1207.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/998109/ltcube_552182401_552441601_4FGL_J1349.5-1131_daily_bin1207.fits
.....................!
real 194.99
user 188.35
sys 4.35

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/998109/ft1_filtered_4FGL_J1349.5-1131_daily_bin1207.fits scfile=/scratch/kocevski/998109/ft2_4FGL_J1349.5-1131_daily_bin1207.fits outfile=/scratch/kocevski/998109/cmap_552182401_552441601_4FGL_J1349.5-1131_daily_bin1207.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998109/ft1_filtered_4FGL_J1349.5-1131_daily_bin1207.fits scfile=/scratch/kocevski/998109/ft2_4FGL_J1349.5-1131_daily_bin1207.fits outfile=/scratch/kocevski/998109/cmap_HighResolution_552182401_552441601_4FGL_J1349.5-1131_daily_bin1207.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998109/ft1_filtered_4FGL_J1349.5-1131_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/998109/ft2_4FGL_J1349.5-1131_daily_bin1207.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998109/Model_4FGL_J1349.5-1131_daily_bin1207.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/998109/ft1_filtered_4FGL_J1349.5-1131_daily_bin1207.fits.....................!
real 28.81
user 27.19
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2477       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5133       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.264       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.508       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7136       1.0000         .10000E-03   10000.    
    10 'norm      '    192.93       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.688       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .49641       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.248       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.043       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.708       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73504       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99820       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=   2238.184     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2421 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    33.817       -.26534E-06** at limit **
   2  norm          .10000E-03    114.75        .64840E-06** at limit **
   3  Prefactor     4.2244        49.369        .29582E-05   -.72669E-05
   4  Prefactor     7.5237        31.033       -.14269E-05   -.47773E-05
   5  Prefactor     15.284        50.015       -.10632E-05   -.15061E-04
   6  norm          .10000E-03    2.9289        .22576E-07** at limit **
   7  norm          .10000E-03    5.4748        .68533E-06** at limit **
   8  norm          19.508        18.845        .55230E-07   -.81047E-04
   9  Prefactor     9.7196        44.066        .76599E-05    .22425E-05
  10  norm          192.89        266.92       -.10007E-06   -.36232E-05
  11  Prefactor     18.690        29.967       -.26230E-05   -.35850E-04
  12  norm          .10000E-03    6.4814       -.29270E-06** at limit **
  13  Prefactor     .49635        10.011        .88853E-06   -.13837E-03
  14  Prefactor     24.228        95.804       -.20628E-06   -.12026E-04
  15  norm          .10000E-03    10.902       -.19229E-07** at limit **
  16  norm          12.045        11.730        .17177E-06   -.22292E-04
  17  norm          .10000E-03    43.455        .40771E-06** at limit **
  18  norm          19.708        23.602        .89514E-07   -.19899E-05
  19  Prefactor     .10000E-03    19.771        .94549E-07** at limit **
  20  Prefactor     .10000E-03    14.050        .13121E-07** at limit **
  21  Normalizat    .73425        .53731       -.54630E-05   -.19445E-04
  22  Prefactor     .99856        .21517        .12659E-05   -.12751E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.22436
  Prefactor  = 7.52371
  Prefactor  = 15.2841
  norm       = 0.0001
  norm       = 0.0001
  norm       = 19.5077
  Prefactor  = 9.71963
  norm       = 192.892
  Prefactor  = 18.6896
  norm       = 0.0001
  Prefactor  = 0.496354
  Prefactor  = 24.2282
  norm       = 0.0001
  norm       = 12.0445
  norm       = 0.0001
  norm       = 19.7079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.734251
  Prefactor  = 0.998564
 **********
 **   18 **HESSE 
 **********

 FCN=   2238.184     FROM HESSE     STATUS=OK           344 CALLS     2765 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    33.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    116.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2244        48.350        .19550E-03   -1.5297    
   4  Prefactor     7.5237        30.774        .14631E-03   -1.5159    
   5  Prefactor     15.284        49.872        .10252E-03   -1.4926    
   6  norm          .10000E-03    2.9337        .79074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.4950        .10795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.508        18.871        .90683E-04   -1.4824    
   9  Prefactor     9.7196        44.299        .64288E-03   -1.5084    
  10  norm          192.89        266.90        .14540E-03   -1.2921    
  11  Prefactor     18.690        30.009        .92648E-04   -1.4843    
  12  norm          .10000E-03    6.5345        .11758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .49635        44.392        .26858E-02   -1.5567    
  14  Prefactor     24.228        95.629        .81346E-04   -1.4723    
  15  norm          .10000E-03    10.920        .15252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.045        11.710        .11543E-03   -1.5014    
  17  norm          .10000E-03    43.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.708        23.603        .90220E-04   -1.4820    
  19  Prefactor     .10000E-03    19.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.054        .17323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .73425        .60126        .44198E-03   -1.0256    
  22  Prefactor     .99856        .24887        .17460E-03   -.92777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95101e-10
Minuit parameter uncertainties:
  1  0.000180807
  2  0.000126547
  3  28.6118
  4  30.4592
  5  50.0082
  6  1.79808e-06
  7  2.64123e-06
  8  18.8772
  9  41.5512
  10  268.602
  11  30.0333
  12  8.85638e-06
  13  9.39433
  14  96.2429
  15  1.09482e-06
  16  11.7126
  17  0.000266776
  18  23.6139
  19  3.34106e-05
  20  6.07812e-06
  21  0.60679
  22  0.249152
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  4.964e-01  9.394e+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.986e-01  2.492e-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.343e-01  6.068e-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: 2.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998109/likelihoodResults_552182401_552441601_4FGL_J1349.5-1131_daily_bin1207.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) = 2238.17497968
delta logL = 0.00923416828164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2238.17151616
delta logL = 0.0126976838428

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0137       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9450       1.0000          .0000       10.000    
     3 'Normalizat'    .72252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0006       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=   2238.172     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      241 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0076        250.34        .13023E-01    .44100E-03
   2  Index         2.9467        6.4271        .37481        .10960E-04
   3  Normalizat    .72292        .61510E-01    .10043        .12824E-04
   4  Prefactor     1.0007        .28132E-01    .45619E-01    .40466E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0076
  Index      = 2.94672
  Normalizat = 0.72292
  Prefactor  = 1.0007
 **********
 **   18 **HESSE 
 **********

 FCN=   2238.172     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0076        12.733        .27397E-03   -1.5507    
   2  Index         2.9467        2.4979        .11556E-01   -.42317    
   3  Normalizat    .72292        .53290        .44512E-03   -1.0299    
   4  Prefactor     1.0007        .24281        .17441E-03   -.92706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10317e-12
Minuit parameter uncertainties:
  1  7.16527
  2  2.64359
  3  0.536785
  4  0.24308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998109': 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) = 2238.17151234
delta logL = 0.0127015047101

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.008e+00  7.165e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.947e+00  2.644e+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.001e+00  2.431e-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.229e-01  5.368e-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/998109/cmap_HighResolution_552182401_552441601_4FGL_J1349.5-1131_daily_bin1207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.16e-02', job_status='DONE', photon_flux_upper_limit='2.78e-07', time_completed='2021-09-08 14:35:56.570224', job_id='998109', GAL2='1.00', fit_tolerance='1e-08', EG2='0.72', EG='0.73', time_epoch_completed='1631136956.57', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.27e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1207' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:35:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 998109: <4FGL_J1349.5-1131_daily_bin1207> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1207> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 14:25:35 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:26:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 14:26:19 2021
Terminated at Wed Sep  8 14:35:57 2021
Results reported at Wed Sep  8 14:35:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1207 207.387 -11.5188 552182401 552441601 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 :                                   425.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   577 sec.
    Turnaround time :                            622 sec.

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

