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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1017
RA = 207.387, Dec = -11.5188
tmin = 502934401, tmax = 503193601
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='997894', job_status='RUN', time_executed='2021-09-08 14:29:19.396233', time_epoch_executed='1631136559.4' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997894

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997894/ft1_4FGL_J1349.5-1131_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997894/ft2_4FGL_J1349.5-1131_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997894/ft1_4FGL_J1349.5-1131_daily_bin1017.fits outfile=/scratch/kocevski/997894/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1017.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=502934401.0 tmax=503193601.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.65
user 3.42
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/997894/ft2_4FGL_J1349.5-1131_daily_bin1017.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/997894/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1017.fits evtable="EVENTS" outfile="/scratch/kocevski/997894/ft1_filtered_4FGL_J1349.5-1131_daily_bin1017.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997894/ft1_filtered_4FGL_J1349.5-1131_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/997894/ft2_4FGL_J1349.5-1131_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/997894/ltcube_502934401_503193601_4FGL_J1349.5-1131_daily_bin1017.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/997894/ft2_4FGL_J1349.5-1131_daily_bin1017.fits
.....................!
real 16.55
user 16.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997894/ft1_filtered_4FGL_J1349.5-1131_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/997894/ft2_4FGL_J1349.5-1131_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/997894/ltcube_502934401_503193601_4FGL_J1349.5-1131_daily_bin1017.fits outfile=/scratch/kocevski/997894/expmap_502934401_503193601_4FGL_J1349.5-1131_daily_bin1017.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/997894/ltcube_502934401_503193601_4FGL_J1349.5-1131_daily_bin1017.fits
.....................!
real 192.71
user 186.91
sys 5.31

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/997894/ft1_filtered_4FGL_J1349.5-1131_daily_bin1017.fits scfile=/scratch/kocevski/997894/ft2_4FGL_J1349.5-1131_daily_bin1017.fits outfile=/scratch/kocevski/997894/cmap_502934401_503193601_4FGL_J1349.5-1131_daily_bin1017.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997894/ft1_filtered_4FGL_J1349.5-1131_daily_bin1017.fits scfile=/scratch/kocevski/997894/ft2_4FGL_J1349.5-1131_daily_bin1017.fits outfile=/scratch/kocevski/997894/cmap_HighResolution_502934401_503193601_4FGL_J1349.5-1131_daily_bin1017.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997894/ft1_filtered_4FGL_J1349.5-1131_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/997894/ft2_4FGL_J1349.5-1131_daily_bin1017.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997894/Model_4FGL_J1349.5-1131_daily_bin1017.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/997894/ft1_filtered_4FGL_J1349.5-1131_daily_bin1017.fits.....................!
real 61.63
user 60.08
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.486       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2848       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3155       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.503       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.7637       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9477       1.0000         .10000E-03   10000.    
     8 'norm      '    6.2706       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.631       1.0000         .10000E-03   10000.    
    10 'norm      '    .15563E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41207E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8593       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5799       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3995       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .34919E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12095E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10665E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2887       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89535       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=   7810.609     FROM MIGRAD    STATUS=CONVERGED    885 CALLS     2513 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.470        12.810        .95780E-04    .21840E-04
   2  norm          1.2839        4.8509        .18661E-02   -.44444E-03
   3  Prefactor     1.3126        17.566        .38404E-03    .17850E-04
   4  Prefactor     19.498        11.079        .45347E-03    .23534E-03
   5  Prefactor     .10000E-03    9.0217        .18142E-02** at limit **
   6  norm          1.7635        1.3949        .88675E-04   -.18077E-04
   7  norm          1.9473        3.2847        .18180E-03    .14264E-03
   8  norm          6.2697        7.2630        .16030E-03    .97800E-04
   9  Prefactor     26.657        19.387        .77629E-04    .72345E-04
  10  norm          .10001E-03    75.982        .18142E-02** at limit **
  11  Prefactor     .10026E-03    13.829        .67746E-01** at limit **
  12  norm          2.8561        5.0557        .12021E-02   -.29471E-03
  13  Prefactor     3.5797        4.7377        .20388E-03    .12987E-03
  14  Prefactor     .10000E-03    7.2038        .18142E-02** at limit **
  15  norm          3.3994        5.0042        .10971E-02    .32999E-03
  16  norm          .10000E-03    2.2710        .19514E-02** at limit **
  17  norm          .10000E-03    6.6389        .18142E-02** at limit **
  18  norm          .10001E-03    6.7070        .59775E-01** at limit **
  19  Prefactor     .10000E-03    19.126        .18142E-02** at limit **
  20  Prefactor     .10000E-03    34.340        .18142E-02** at limit **
  21  Normalizat    1.2888        .26454        .31969E-03    .48415E-03
  22  Prefactor     .89542        .13378        .19658E-03    .69892E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.4704
  norm       = 1.28388
  Prefactor  = 1.3126
  Prefactor  = 19.4976
  Prefactor  = 0.0001
  norm       = 1.76346
  norm       = 1.94733
  norm       = 6.26972
  Prefactor  = 26.6568
  norm       = 0.000100005
  Prefactor  = 0.000100257
  norm       = 2.85613
  Prefactor  = 3.57969
  Prefactor  = 0.0001
  norm       = 3.3994
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.28882
  Prefactor  = 0.895423
 **********
 **   18 **HESSE 
 **********

 FCN=   7810.609     FROM HESSE     STATUS=OK           348 CALLS     2861 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.470        12.809        .38312E-05   -1.4872    
   2  norm          1.2839        4.8484        .74645E-04   -1.5481    
   3  Prefactor     1.3126        17.550        .76808E-04   -1.5479    
   4  Prefactor     19.498        11.076        .18139E-04   -1.4825    
   5  Prefactor     .10000E-03    9.0224        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7635        1.3949        .35470E-05   -1.5442    
   7  norm          1.9473        3.2830        .72721E-05   -1.5429    
   8  norm          6.2697        7.2595        .64121E-05   -1.5207    
   9  Prefactor     26.657        19.363        .31052E-05   -1.4675    
  10  norm          .10001E-03    76.038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10026E-03    11.975        .74585E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8561        5.0518        .48083E-04   -1.5370    
  13  Prefactor     3.5797        4.7355        .81551E-05   -1.5330    
  14  Prefactor     .10000E-03    7.2038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3994        5.0014        .21943E-03   -1.5339    
  16  norm          .10000E-03    2.2761        .39028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.6424        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    6.2936        .62557E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.131        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.352        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2888        .26475        .63937E-04   -.83901    
  22  Prefactor     .89542        .13386        .39316E-04   -.96301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44492e-09
Minuit parameter uncertainties:
  1  12.8111
  2  4.84986
  3  9.60223
  4  11.0776
  5  1.38443e-05
  6  1.39488
  7  3.28331
  8  7.2605
  9  19.3679
  10  0.00126172
  11  0.00350989
  12  5.05257
  13  4.73595
  14  3.88175e-06
  15  5.00198
  16  7.22873e-05
  17  1.17049e-05
  18  0.000408356
  19  7.75884e-05
  20  0.000208485
  21  0.26503
  22  0.133905
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  3.580e+00  4.736e+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:  8.954e-01  1.339e-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.289e+00  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/997894/likelihoodResults_502934401_503193601_4FGL_J1349.5-1131_daily_bin1017.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) = 7810.36757642
delta logL = 0.24152887131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7810.36616847
delta logL = 0.242936827277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0820       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2828       1.0000          .0000       10.000    
     3 'Normalizat'    1.2517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90804       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=   7810.366     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      283 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0818        5.0663        .11861E-03   -.10451E-02
   2  Index         3.2830        1.5796        .74841E-02   -.17701E-03
   3  Normalizat    1.2517        .25617        .32366E-03   -.24525E-03
   4  Prefactor     .90804        .13176        .19534E-03   -.29151E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.08181
  Index      = 3.28295
  Normalizat = 1.25166
  Prefactor  = 0.908037
 **********
 **   18 **HESSE 
 **********

 FCN=   7810.366     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0818        3.7962        .47443E-05   -1.5419    
   2  Index         3.2830        1.1919        .29936E-03   -.35054    
   3  Normalizat    1.2517        .25583        .12946E-04   -.85021    
   4  Prefactor     .90804        .13146        .39068E-04   -.95861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82657e-10
Minuit parameter uncertainties:
  1  3.79665
  2  1.20504
  3  0.256087
  4  0.131508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997894': 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) = 7810.36616843
delta logL = 0.24293685933

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.082e+00  3.797e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.283e+00  1.205e+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.080e-01  1.315e-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.252e+00  2.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 3.28 +/- 1.21
Photon Flux (Free Index): 6.41e-08 +/- 6.74e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.13e-05

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/997894/cmap_HighResolution_502934401_503193601_4FGL_J1349.5-1131_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', energy_flux2='1.14e-05', dlogl='2.43e-01', photon_flux2='6.41e-08', job_status='DONE', time_completed='2021-09-08 14:40:57.975978', photon_index_error2='1.21', photon_index2='3.28', ts='0.79', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.13e-05', EG='1.29', time_epoch_completed='1631137257.98', return_code='0', job_id='997894', GAL2='0.91', EG2='1.25', return_code2='0', photon_flux_error2='6.74e-08', ts2='1.32', photon_index='2.49' WHERE bin_id='1017' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:40:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 997894: <4FGL_J1349.5-1131_daily_bin1017> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1017 207.387 -11.5188 502934401 503193601 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 :                                   696.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            942 sec.

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

