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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin625
RA = 207.387, Dec = -11.5188
tmin = 401328001, tmax = 401587201
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='995325', job_status='RUN', time_executed='2021-09-08 14:18:34.747995', time_epoch_executed='1631135914.75' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995325

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995325/ft1_4FGL_J1349.5-1131_daily_bin625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995325/ft2_4FGL_J1349.5-1131_daily_bin625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995325/ft1_4FGL_J1349.5-1131_daily_bin625.fits outfile=/scratch/kocevski/995325/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin625.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=401328001.0 tmax=401587201.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.59
user 3.26
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995325/ft1_filtered_4FGL_J1349.5-1131_daily_bin625.fits" evtable="EVENTS" scfile=/scratch/kocevski/995325/ft2_4FGL_J1349.5-1131_daily_bin625.fits sctable="SC_DATA" outfile=/scratch/kocevski/995325/ltcube_401328001_401587201_4FGL_J1349.5-1131_daily_bin625.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/995325/ft2_4FGL_J1349.5-1131_daily_bin625.fits
.....................!
real 17.11
user 16.65
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995325/ft1_filtered_4FGL_J1349.5-1131_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/995325/ft2_4FGL_J1349.5-1131_daily_bin625.fits sctable="SC_DATA" expcube=/scratch/kocevski/995325/ltcube_401328001_401587201_4FGL_J1349.5-1131_daily_bin625.fits outfile=/scratch/kocevski/995325/expmap_401328001_401587201_4FGL_J1349.5-1131_daily_bin625.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/995325/ltcube_401328001_401587201_4FGL_J1349.5-1131_daily_bin625.fits
.....................!
real 193.47
user 187.48
sys 5.05

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/995325/ft1_filtered_4FGL_J1349.5-1131_daily_bin625.fits scfile=/scratch/kocevski/995325/ft2_4FGL_J1349.5-1131_daily_bin625.fits outfile=/scratch/kocevski/995325/cmap_401328001_401587201_4FGL_J1349.5-1131_daily_bin625.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995325/ft1_filtered_4FGL_J1349.5-1131_daily_bin625.fits scfile=/scratch/kocevski/995325/ft2_4FGL_J1349.5-1131_daily_bin625.fits outfile=/scratch/kocevski/995325/cmap_HighResolution_401328001_401587201_4FGL_J1349.5-1131_daily_bin625.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/995325/ft1_filtered_4FGL_J1349.5-1131_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/995325/ft2_4FGL_J1349.5-1131_daily_bin625.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/995325/Model_4FGL_J1349.5-1131_daily_bin625.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/995325/ft1_filtered_4FGL_J1349.5-1131_daily_bin625.fits.....................!
real 52.92
user 50.67
sys 1.67

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .59583E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.172       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.370       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1208       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0818       1.0000         .10000E-03   10000.    
     7 'norm      '    .12620E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.2053       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.953       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.320       1.0000         .10000E-03   10000.    
    12 'norm      '    3.7250       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0342       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.695       1.0000         .10000E-03   10000.    
    15 'norm      '    6.8813       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.389       1.0000         .10000E-03   10000.    
    18 'norm      '    6.9423       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.791       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4760       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81869       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=   5951.592     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2389 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.8798        .19164E-07** at limit **
   2  norm          .10000E-03    62.542        .11116E-04** at limit **
   3  Prefactor     10.172        9.4300       -.98524E-07    .38691E-04
   4  Prefactor     11.372        9.5902       -.43401E-07    .16502E-04
   5  Prefactor     5.1513        23.368        .33422E-05    .10679E-03
   6  norm          2.0821        1.6035       -.26993E-07    .14313E-04
   7  norm          .10000E-03    4.7312       -.22165E-05** at limit **
   8  norm          6.2070        8.0536       -.92002E-06    .46430E-03
   9  Prefactor     13.954        27.477        .43168E-06   -.58261E-04
  10  norm          .10000E-03    12.549        .68615E-08** at limit **
  11  Prefactor     17.310        21.257       -.50120E-06    .55083E-05
  12  norm          3.7233        5.1978       -.89428E-07   -.57087E-04
  13  Prefactor     5.0349        6.1172       -.48989E-07   -.92882E-04
  14  Prefactor     18.695        31.729       -.14707E-08   -.68167E-06
  15  norm          6.8813        6.9227       -.95135E-08   -.10442E-03
  16  norm          .10000E-03    1.2414        .27815E-08** at limit **
  17  norm          14.387        12.478       -.96516E-08   -.46442E-05
  18  norm          6.9413        7.2698       -.31347E-07    .81701E-05
  19  Prefactor     .10000E-03    28.674        .15240E-06** at limit **
  20  Prefactor     25.774        39.654       -.20918E-06    .17726E-03
  21  Normalizat    1.4756        .25973        .78299E-06    .54660E-04
  22  Prefactor     .81893        .13397       -.37386E-06    .16640E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 10.1719
  Prefactor  = 11.3723
  Prefactor  = 5.15131
  norm       = 2.08208
  norm       = 0.000100001
  norm       = 6.207
  Prefactor  = 13.9543
  norm       = 0.0001
  Prefactor  = 17.3104
  norm       = 3.72334
  Prefactor  = 5.03491
  Prefactor  = 18.6951
  norm       = 6.88131
  norm       = 0.0001
  norm       = 14.3873
  norm       = 6.94126
  Prefactor  = 0.0001
  Prefactor  = 25.7742
  Normalizat = 1.47565
  Prefactor  = 0.818935
 **********
 **   18 **HESSE 
 **********

 FCN=   5951.592     FROM HESSE     STATUS=OK           352 CALLS     2741 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.8984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    61.288        .41942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.172        9.4257        .12564E-03   -1.5070    
   4  Prefactor     11.372        9.5861        .11881E-03   -1.5033    
   5  Prefactor     5.1513        25.225        .17767E-03   -1.5254    
   6  norm          2.0821        1.6023        .81542E-04   -1.5419    
   7  norm          .10000E-03    5.1144        .33260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.2070        8.2150        .80577E-03   -1.5210    
   9  Prefactor     13.954        27.261        .10723E-03   -1.4961    
  10  norm          .10000E-03    12.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.310        21.125        .48119E-03   -1.4876    
  12  norm          3.7233        5.1879        .19748E-03   -1.5322    
  13  Prefactor     5.0349        6.1000        .17922E-03   -1.5259    
  14  Prefactor     18.695        31.720        .92632E-04   -1.4843    
  15  norm          6.8813        6.9040        .15294E-03   -1.5183    
  16  norm          .10000E-03    1.2626        .83874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.387        12.478        .10559E-03   -1.4949    
  18  norm          6.9413        7.2663        .15226E-03   -1.5181    
  19  Prefactor     .10000E-03    28.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     25.774        39.703        .78881E-04   -1.4692    
  21  Normalizat    1.4756        .29983        .31247E-03   -.78465    
  22  Prefactor     .81893        .15521        .21116E-03   -.99034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98529e-10
Minuit parameter uncertainties:
  1  2.07849e-06
  2  0.000722913
  3  9.42709
  4  9.58735
  5  22.8139
  6  1.60238
  7  0.000115094
  8  8.21648
  9  27.2848
  10  2.5399e-07
  11  21.1337
  12  5.18849
  13  6.1007
  14  31.7483
  15  6.90478
  16  7.74906e-07
  17  12.4807
  18  7.26719
  19  7.13243e-05
  20  39.7439
  21  0.300193
  22  0.155295
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  5.035e+00  6.101e+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.189e-01  1.553e-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.476e+00  3.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.04
Ra Dec: 207.387 -11.519
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 4.90e-08 +/- 5.93e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.73e-05

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

Saving results to:
/scratch/kocevski/995325/likelihoodResults_401328001_401587201_4FGL_J1349.5-1131_daily_bin625.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) = 5951.2758526
delta logL = 0.315969154429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5951.24020523
delta logL = 0.351616520072

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5999       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7719       1.0000          .0000       10.000    
     3 'Normalizat'    1.4099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84202       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=   5951.240     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      253 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5994        27.445        .83797E-02    .11850E-02
   2  Index         3.7726        3.8375        .13303        .17766E-03
   3  Normalizat    1.4100        .78698E-01    .71929E-01    .29025E-04
   4  Prefactor     .84187        .39756E-01    .44262E-01   -.83446E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.59935
  Index      = 3.77263
  Normalizat = 1.40998
  Prefactor  = 0.841873
 **********
 **   18 **HESSE 
 **********

 FCN=   5951.240     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5994        11.646        .78972E-04   -1.5455    
   2  Index         3.7726        3.2400        .68733E-02   -.24801    
   3  Normalizat    1.4100        .30602        .31826E-03   -.80340    
   4  Prefactor     .84187        .15552        .20856E-03   -.98203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64545e-10
Minuit parameter uncertainties:
  1  8.63373
  2  3.54858
  3  0.306421
  4  0.155602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995325': 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) = 5951.24020382
delta logL = 0.351617930281

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.599e+00  8.634e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.773e+00  3.549e+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:  8.419e-01  1.556e-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.410e+00  3.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 3.77 +/- 3.55
Photon Flux (Free Index): 1.08e-07 +/- 1.07e-07
Energy Flux (Free Index): 1.68e-05 +/- 1.52e-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/995325/cmap_HighResolution_401328001_401587201_4FGL_J1349.5-1131_daily_bin625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', comment='SUCCESS', photon_flux='4.90e-08', energy_flux2='1.68e-05', photon_flux_error='5.93e-08', dlogl='3.52e-01', energy_flux='1.43e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-08 14:28:30.700857', photon_index_error2='3.55', photon_index2='3.77', ts='1.04', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.76e-07', energy_flux_error2='1.52e-05', EG='1.48', time_epoch_completed='1631136510.7', return_code='0', job_id='995325', GAL2='0.84', EG2='1.41', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='1.07e-07', ts2='1.83', photon_index='2.49' WHERE bin_id='625' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:28:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 995325: <4FGL_J1349.5-1131_daily_bin625> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin625> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 14:15:34 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:15:44 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:15:44 2021
Terminated at Wed Sep  8 14:28:31 2021
Results reported at Wed Sep  8 14:28:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin625 207.387 -11.5188 401328001 401587201 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 :                                   593.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            777 sec.

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

