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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1121
RA = 207.387, Dec = -11.5188
tmin = 529891201, tmax = 530150401
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='998011', job_status='RUN', time_executed='2021-09-08 14:28:17.790245', time_epoch_executed='1631136497.79' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998011/ft1_4FGL_J1349.5-1131_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998011/ft2_4FGL_J1349.5-1131_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998011/ft1_4FGL_J1349.5-1131_daily_bin1121.fits outfile=/scratch/kocevski/998011/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1121.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=529891201.0 tmax=530150401.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 2.96
user 2.72
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998011/ft1_filtered_4FGL_J1349.5-1131_daily_bin1121.fits" evtable="EVENTS" scfile=/scratch/kocevski/998011/ft2_4FGL_J1349.5-1131_daily_bin1121.fits sctable="SC_DATA" outfile=/scratch/kocevski/998011/ltcube_529891201_530150401_4FGL_J1349.5-1131_daily_bin1121.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/998011/ft2_4FGL_J1349.5-1131_daily_bin1121.fits
.....................!
real 13.04
user 12.70
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998011/ft1_filtered_4FGL_J1349.5-1131_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/998011/ft2_4FGL_J1349.5-1131_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/998011/ltcube_529891201_530150401_4FGL_J1349.5-1131_daily_bin1121.fits outfile=/scratch/kocevski/998011/expmap_529891201_530150401_4FGL_J1349.5-1131_daily_bin1121.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/998011/ltcube_529891201_530150401_4FGL_J1349.5-1131_daily_bin1121.fits
.....................!
real 155.88
user 151.66
sys 3.82

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/998011/ft1_filtered_4FGL_J1349.5-1131_daily_bin1121.fits scfile=/scratch/kocevski/998011/ft2_4FGL_J1349.5-1131_daily_bin1121.fits outfile=/scratch/kocevski/998011/cmap_529891201_530150401_4FGL_J1349.5-1131_daily_bin1121.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.47
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998011/ft1_filtered_4FGL_J1349.5-1131_daily_bin1121.fits scfile=/scratch/kocevski/998011/ft2_4FGL_J1349.5-1131_daily_bin1121.fits outfile=/scratch/kocevski/998011/cmap_HighResolution_529891201_530150401_4FGL_J1349.5-1131_daily_bin1121.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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998011/ft1_filtered_4FGL_J1349.5-1131_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/998011/ft2_4FGL_J1349.5-1131_daily_bin1121.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998011/Model_4FGL_J1349.5-1131_daily_bin1121.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/998011/ft1_filtered_4FGL_J1349.5-1131_daily_bin1121.fits.....................!
real 48.52
user 47.29
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.043       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.198       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.6668       1.0000         .10000E-03   10000.    
     7 'norm      '    11.275       1.0000         .10000E-03   10000.    
     8 'norm      '    12.028       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.551       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.1591       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.739       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .53514E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    10.583       1.0000         .10000E-03   10000.    
    18 'norm      '    .39855E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8077       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.7443       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89924       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=   6958.752     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2061 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    27.817       -.54472E-05** at limit **
   2  norm          .10000E-03    8.3822        .52655E-06** at limit **
   3  Prefactor     12.045        10.063       -.72619E-06   -.10909E-04
   4  Prefactor     31.211        17.053        .31045E-05    .30590E-05
   5  Prefactor     .10000E-03    15.739       -.28193E-06** at limit **
   6  norm          3.6680        2.3041       -.77493E-07   -.39350E-03
   7  norm          11.276        6.3615       -.30361E-06   -.80863E-04
   8  norm          12.029        10.978       -.35121E-06   -.51630E-04
   9  Prefactor     .10000E-03    49.586       -.70154E-05** at limit **
  10  norm          18.552        23.703        .15603E-05   -.19374E-06
  11  Prefactor     .10000E-03    9.4944       -.58455E-07** at limit **
  12  norm          4.1607        5.9734       -.21602E-06   -.24440E-03
  13  Prefactor     .10000E-03    3.9218        .36946E-06** at limit **
  14  Prefactor     31.743        31.108        .41415E-05    .53603E-05
  15  norm          .10000E-03    2.8243        .62290E-07** at limit **
  16  norm          .77663E-01    1.6734       -.61410E-06    .86381E-03
  17  norm          10.584        15.234        .21486E-06   -.21191E-04
  18  norm          .10000E-03    6.4541        .12282E-05** at limit **
  19  Prefactor     .10000E-03    9.5310        .71213E-07** at limit **
  20  Prefactor     5.8085        14.518        .27551E-06   -.39021E-04
  21  Normalizat    1.7438        .28095       -.21550E-05    .13235E-03
  22  Prefactor     .89928        .13489        .33513E-06   -.11814E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.0447
  Prefactor  = 31.2105
  Prefactor  = 0.0001
  norm       = 3.66804
  norm       = 11.2757
  norm       = 12.0292
  Prefactor  = 0.0001
  norm       = 18.5521
  Prefactor  = 0.0001
  norm       = 4.16068
  Prefactor  = 0.0001
  Prefactor  = 31.7428
  norm       = 0.0001
  norm       = 0.0776627
  norm       = 10.5838
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.80855
  Normalizat = 1.74379
  Prefactor  = 0.899278
 **********
 **   18 **HESSE 
 **********

 FCN=   6958.752     FROM HESSE     STATUS=OK           344 CALLS     2405 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.3927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.045        10.067        .11543E-03   -1.5014    
   4  Prefactor     31.211        17.200        .71735E-04   -1.4590    
   5  Prefactor     .10000E-03    15.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.6680        2.3191        .94105E-04   -1.5325    
   7  norm          11.276        6.3609        .11931E-03   -1.5036    
   8  norm          12.029        10.973        .11551E-03   -1.5014    
   9  Prefactor     .10000E-03    50.301        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.552        23.712        .92991E-04   -1.4846    
  11  Prefactor     .10000E-03    9.5421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1607        5.9759        .19764E-03   -1.5300    
  13  Prefactor     .10000E-03    3.9689        .16126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.743        31.232        .71123E-04   -1.4581    
  15  norm          .10000E-03    2.8325        .13690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .77663E-01    36.978        .19380E-02   -1.5652    
  17  norm          10.584        15.231        .12316E-03   -1.5057    
  18  norm          .10000E-03    20.138        .39417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.5504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.8085        14.510        .16665E-03   -1.5226    
  21  Normalizat    1.7438        .33508        .33462E-03   -.71140    
  22  Prefactor     .89928        .15967        .22544E-03   -.96166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16842e-08
Minuit parameter uncertainties:
  1  3.48658e-05
  2  1.58148e-05
  3  10.0685
  4  17.2024
  5  1.3719e-05
  6  2.3192
  7  6.36124
  8  10.9748
  9  0.000299265
  10  23.7235
  11  2.14292e-05
  12  5.97676
  13  5.60317e-06
  14  31.2477
  15  3.01891e-06
  16  3.38919
  17  15.2362
  18  0.000405972
  19  5.47411e-06
  20  14.5183
  21  0.335521
  22  0.159757
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.603e-06  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.993e-01  1.598e-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.744e+00  3.355e-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.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998011/likelihoodResults_529891201_530150401_4FGL_J1349.5-1131_daily_bin1121.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) = 6958.75356045
delta logL = -0.00120027776393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6958.75236074
delta logL = -5.72994395043e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5008       1.0000          .0000       10.000    
     3 'Normalizat'    1.7436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89938       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=   6958.752     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10042E-03    112.98        .16151E-02** at limit **
   2  Index         2.5459        8.0755        .50000       -.11561E-04
   3  Normalizat    1.7438        .37971E-01    .33462E-03    .75968E-04
   4  Prefactor     .89928        .19355E-01    .22544E-03    .89614E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100416
  Index      = 2.54595
  Normalizat = 1.74379
  Prefactor  = 0.89928
 **********
 **   18 **HESSE 
 **********

 FCN=   6958.752     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10042E-03    493.12        .32303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5459        6.4755        .50000       -.51302    
   3  Normalizat    1.7438        .93297E-01    .13385E-04   -.71140    
   4  Prefactor     .89928        .47523E-01    .90174E-05   -.96166    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.5759e-08
Minuit parameter uncertainties:
  1  0.0288857
  2  1311.17
  3  0.093306
  4  0.0475257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998011': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6958.75236006
delta logL = 1.06765583041e-07

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.004e-04  2.889e-02  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.546e+00  1.311e+03  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.993e-01  4.753e-02  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.744e+00  9.331e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.31e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-08 14:40:16.016438', job_id='998011', GAL2='0.90', fit_tolerance='1e-08', EG2='1.74', EG='1.74', time_epoch_completed='1631137216.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1121' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:40:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 998011: <4FGL_J1349.5-1131_daily_bin1121> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1121 207.387 -11.5188 529891201 530150401 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 :                                   503.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            889 sec.

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

