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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1293
RA = 207.387, Dec = -11.5188
tmin = 574473601, tmax = 574732801
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='999009', job_status='RUN', time_executed='2021-09-08 14:31:20.894551', time_epoch_executed='1631136680.89' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1293'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999009

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999009/ft1_4FGL_J1349.5-1131_daily_bin1293.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999009/ft2_4FGL_J1349.5-1131_daily_bin1293.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999009/ft1_4FGL_J1349.5-1131_daily_bin1293.fits outfile=/scratch/kocevski/999009/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1293.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=574473601.0 tmax=574732801.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 4.18
user 3.92
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/999009/ft2_4FGL_J1349.5-1131_daily_bin1293.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/999009/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1293.fits evtable="EVENTS" outfile="/scratch/kocevski/999009/ft1_filtered_4FGL_J1349.5-1131_daily_bin1293.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999009/ft1_filtered_4FGL_J1349.5-1131_daily_bin1293.fits" evtable="EVENTS" scfile=/scratch/kocevski/999009/ft2_4FGL_J1349.5-1131_daily_bin1293.fits sctable="SC_DATA" outfile=/scratch/kocevski/999009/ltcube_574473601_574732801_4FGL_J1349.5-1131_daily_bin1293.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/999009/ft2_4FGL_J1349.5-1131_daily_bin1293.fits
.....................!
real 15.57
user 15.13
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999009/ft1_filtered_4FGL_J1349.5-1131_daily_bin1293.fits evtable="EVENTS" scfile=/scratch/kocevski/999009/ft2_4FGL_J1349.5-1131_daily_bin1293.fits sctable="SC_DATA" expcube=/scratch/kocevski/999009/ltcube_574473601_574732801_4FGL_J1349.5-1131_daily_bin1293.fits outfile=/scratch/kocevski/999009/expmap_574473601_574732801_4FGL_J1349.5-1131_daily_bin1293.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/999009/ltcube_574473601_574732801_4FGL_J1349.5-1131_daily_bin1293.fits
.....................!
real 192.77
user 186.66
sys 5.09

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/999009/ft1_filtered_4FGL_J1349.5-1131_daily_bin1293.fits scfile=/scratch/kocevski/999009/ft2_4FGL_J1349.5-1131_daily_bin1293.fits outfile=/scratch/kocevski/999009/cmap_574473601_574732801_4FGL_J1349.5-1131_daily_bin1293.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/999009/ft1_filtered_4FGL_J1349.5-1131_daily_bin1293.fits scfile=/scratch/kocevski/999009/ft2_4FGL_J1349.5-1131_daily_bin1293.fits outfile=/scratch/kocevski/999009/cmap_HighResolution_574473601_574732801_4FGL_J1349.5-1131_daily_bin1293.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/999009/ft1_filtered_4FGL_J1349.5-1131_daily_bin1293.fits evtable="EVENTS" scfile=/scratch/kocevski/999009/ft2_4FGL_J1349.5-1131_daily_bin1293.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/999009/Model_4FGL_J1349.5-1131_daily_bin1293.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/999009/ft1_filtered_4FGL_J1349.5-1131_daily_bin1293.fits.....................!
real 49.07
user 47.67
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.917       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.737       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.9728       1.0000         .10000E-03   10000.    
     8 'norm      '    18.026       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.286       1.0000         .10000E-03   10000.    
    10 'norm      '    .53525       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14070E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10745E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1340       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7981       1.0000         .10000E-03   10000.    
    17 'norm      '    .12878E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.345       1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.653       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3518       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73405       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=   5699.300     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2050 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.916        12.042       -.17425E-07    .86432E-04
   2  norm          .10000E-03    6.1038       -.38570E-07** at limit **
   3  Prefactor     11.732        12.026       -.13759E-07   -.70462E-04
   4  Prefactor     .10000E-03    3.9458        .56800E-07** at limit **
   5  Prefactor     .10000E-03    15.402        .11078E-06** at limit **
   6  norm          .10000E-03    .54355        .11411E-07** at limit **
   7  norm          6.9714        4.3748        .67412E-09    .20732E-03
   8  norm          18.024        9.5448        .21308E-07   -.84379E-04
   9  Prefactor     25.285        19.286       -.87823E-07    .47196E-03
  10  norm          .26540        18.492       -.12566E-06    .74101E-04
  11  Prefactor     .10000E-03    18.903        .49914E-07** at limit **
  12  norm          .10000E-03    8.9935       -.33830E-07** at limit **
  13  Prefactor     6.1344        2.0311       -.38896E-06   -.65932E-03
  14  Prefactor     .10001E-03    35.150       -.17699E-06** at limit **
  15  norm          .10000E-03    7.2956        .11167E-06** at limit **
  16  norm          1.7980        1.6936        .25596E-08    .18371E-03
  17  norm          .10000E-03    58.145       -.89308E-07** at limit **
  18  norm          12.344        8.1333        .30038E-08   -.61993E-04
  19  Prefactor     43.643        28.043       -.11448E-06    .66400E-03
  20  Prefactor     .10000E-03    10.830       -.12024E-07** at limit **
  21  Normalizat    1.3517        .23983        .90129E-07    .10134E-03
  22  Prefactor     .73423        .12382        .78037E-07   -.57575E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.9165
  norm       = 0.0001
  Prefactor  = 11.7321
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 6.97144
  norm       = 18.0239
  Prefactor  = 25.2845
  norm       = 0.265402
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.13441
  Prefactor  = 0.000100011
  norm       = 0.000100001
  norm       = 1.79801
  norm       = 0.000100002
  norm       = 12.3436
  Prefactor  = 43.6431
  Prefactor  = 0.0001
  Normalizat = 1.35173
  Prefactor  = 0.734232
 **********
 **   18 **HESSE 
 **********

 FCN=   5699.300     FROM HESSE     STATUS=OK           346 CALLS     2396 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.916        12.051        .10370E-03   -1.4935    
   2  norm          .10000E-03    6.1268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.732        12.032        .11693E-03   -1.5023    
   4  Prefactor     .10000E-03    3.9551        .14636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .56633        .10859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.9714        4.3713        .11447E-03   -1.5180    
   8  norm          18.024        9.5598        .47168E-03   -1.4859    
   9  Prefactor     25.285        19.251        .79663E-04   -1.4702    
  10  norm          .26540        26.353        .12468       -1.5605    
  11  Prefactor     .10000E-03    19.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.2223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1344        7.2423        .81050E-03   -1.5213    
  14  Prefactor     .10001E-03    35.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.3607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7980        1.7076        .92280E-04   -1.5440    
  17  norm          .10000E-03    60.296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.344        8.1310        .11401E-03   -1.5005    
  19  Prefactor     43.643        28.024        .60678E-04   -1.4386    
  20  Prefactor     .10000E-03    10.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3517        .28137        .30404E-03   -.82035    
  22  Prefactor     .73423        .14388        .20611E-03   -1.0220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4591e-09
Minuit parameter uncertainties:
  1  12.0531
  2  0.000107027
  3  12.035
  4  0.000132338
  5  0.000495078
  6  1.14461e-05
  7  4.37146
  8  9.56064
  9  19.256
  10  5.29068
  11  0.000216909
  12  0.00012712
  13  7.24338
  14  0.00127225
  15  0.00018348
  16  1.70768
  17  0.000635331
  18  8.13176
  19  28.0325
  20  4.00209e-05
  21  0.281687
  22  0.143953
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  6.134e+00  7.243e+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:  7.342e-01  1.440e-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.352e+00  2.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/999009/likelihoodResults_574473601_574732801_4FGL_J1349.5-1131_daily_bin1293.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) = 5699.101009
delta logL = 0.198690975561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5699.08173002
delta logL = 0.217969956335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6743       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9038       1.0000          .0000       10.000    
     3 'Normalizat'    1.3752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72574       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=   5699.082     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      216 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6743        10.021        .36189E-02    .20448E-02
   2  Index         1.9038        .68641        .19901       -.89350E-04
   3  Normalizat    1.3752        .23712        .68224E-01    .10527E-04
   4  Prefactor     .72575        .12298        .42743E-01    .99510E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.67428
  Index      = 1.90381
  Normalizat = 1.37525
  Prefactor  = 0.725745
 **********
 **   18 **HESSE 
 **********

 FCN=   5699.082     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6743        8.6481        .14476E-03   -1.5154    
   2  Index         1.9038        .75001        .10224E-01   -.66777    
   3  Normalizat    1.3752        .27592        .30182E-03   -.81347    
   4  Prefactor     .72575        .14249        .20715E-03   -1.0253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37477e-09
Minuit parameter uncertainties:
  1  8.64952
  2  0.754645
  3  0.276216
  4  0.14256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999009': 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) = 5699.08173002
delta logL = 0.217969961494

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  7.674e+00  8.650e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.904e+00  7.546e-01  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:  7.257e-01  1.426e-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.375e+00  2.762e-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): 1.90 +/- 0.75
Photon Flux (Free Index): 3.79e-08 +/- 5.77e-08
Energy Flux (Free Index): 3.36e-05 +/- 4.76e-05

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/999009/cmap_HighResolution_574473601_574732801_4FGL_J1349.5-1131_daily_bin1293.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', comment='SUCCESS', energy_flux2='3.36e-05', dlogl='2.18e-01', photon_flux2='3.79e-08', job_status='DONE', time_completed='2021-09-08 14:40:50.777056', photon_index_error2='0.75', photon_index2='1.90', ts='0.88', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='2.03e-07', energy_flux_error2='4.76e-05', EG='1.35', time_epoch_completed='1631137250.78', return_code='0', job_id='999009', GAL2='0.73', EG2='1.38', return_code2='0', photon_flux_error2='5.77e-08', ts2='1.32', photon_index='2.49' WHERE bin_id='1293' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:40:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 999009: <4FGL_J1349.5-1131_daily_bin1293> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1293> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 14:30:29 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:30:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 14:30:54 2021
Terminated at Wed Sep  8 14:40:51 2021
Results reported at Wed Sep  8 14:40:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1293 207.387 -11.5188 574473601 574732801 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 :                                   559.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            622 sec.

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

