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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1192
RA = 207.387, Dec = -11.5188
tmin = 548294401, tmax = 548553601
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='998090', job_status='RUN', time_executed='2021-09-08 14:29:43.332478', time_epoch_executed='1631136583.33' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998090

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998090/ft1_4FGL_J1349.5-1131_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998090/ft2_4FGL_J1349.5-1131_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998090/ft1_4FGL_J1349.5-1131_daily_bin1192.fits outfile=/scratch/kocevski/998090/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1192.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=548294401.0 tmax=548553601.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.94
user 3.69
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998090/ft1_filtered_4FGL_J1349.5-1131_daily_bin1192.fits" evtable="EVENTS" scfile=/scratch/kocevski/998090/ft2_4FGL_J1349.5-1131_daily_bin1192.fits sctable="SC_DATA" outfile=/scratch/kocevski/998090/ltcube_548294401_548553601_4FGL_J1349.5-1131_daily_bin1192.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/998090/ft2_4FGL_J1349.5-1131_daily_bin1192.fits
.....................!
real 14.99
user 14.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998090/ft1_filtered_4FGL_J1349.5-1131_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/998090/ft2_4FGL_J1349.5-1131_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/998090/ltcube_548294401_548553601_4FGL_J1349.5-1131_daily_bin1192.fits outfile=/scratch/kocevski/998090/expmap_548294401_548553601_4FGL_J1349.5-1131_daily_bin1192.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/998090/ltcube_548294401_548553601_4FGL_J1349.5-1131_daily_bin1192.fits
.....................!
real 192.36
user 187.01
sys 4.74

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/998090/ft1_filtered_4FGL_J1349.5-1131_daily_bin1192.fits scfile=/scratch/kocevski/998090/ft2_4FGL_J1349.5-1131_daily_bin1192.fits outfile=/scratch/kocevski/998090/cmap_548294401_548553601_4FGL_J1349.5-1131_daily_bin1192.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998090/ft1_filtered_4FGL_J1349.5-1131_daily_bin1192.fits scfile=/scratch/kocevski/998090/ft2_4FGL_J1349.5-1131_daily_bin1192.fits outfile=/scratch/kocevski/998090/cmap_HighResolution_548294401_548553601_4FGL_J1349.5-1131_daily_bin1192.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998090/ft1_filtered_4FGL_J1349.5-1131_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/998090/ft2_4FGL_J1349.5-1131_daily_bin1192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998090/Model_4FGL_J1349.5-1131_daily_bin1192.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/998090/ft1_filtered_4FGL_J1349.5-1131_daily_bin1192.fits.....................!
real 55.96
user 54.53
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.197       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7126       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .38892E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.621       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.5487       1.0000         .10000E-03   10000.    
     8 'norm      '    6.3422       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    88.363       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .46647       1.0000         .10000E-03   10000.    
    14 'Prefactor '    50.673       1.0000         .10000E-03   10000.    
    15 'norm      '    4.3164       1.0000         .10000E-03   10000.    
    16 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.9901       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9049       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.415       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.7602       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71090       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=   6410.485     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2856 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.199        22.448        .20501E-06    .16869E-04
   2  norm          .10000E-03    4.6999        .14544E-05** at limit **
   3  Prefactor     4.7186        10.463        .20271E-05   -.47716E-04
   4  Prefactor     .10001E-03    10.450       -.95624E-06** at limit **
   5  Prefactor     25.613        33.058       -.81514E-05    .65580E-04
   6  norm          .10000E-03    1.2865       -.19635E-07** at limit **
   7  norm          5.5518        5.9025        .31055E-05   -.87071E-06
   8  norm          6.3504        7.7422        .15216E-05    .33463E-04
   9  Prefactor     .10000E-03    9.6361       -.45313E-06** at limit **
  10  norm          88.351        83.862       -.12347E-04    .35382E-05
  11  Prefactor     .10000E-03    5.4329       -.26443E-06** at limit **
  12  norm          .10000E-03    4.5056       -.12920E-05** at limit **
  13  Prefactor     .38387        4.2633       -.29861E-06   -.26597E-03
  14  Prefactor     50.659        43.130       -.12389E-04    .35548E-04
  15  norm          4.3339        8.7501        .10506E-05   -.11278E-03
  16  norm          .10000E-03    3.2369       -.56788E-07** at limit **
  17  norm          7.9892        13.658       -.15005E-05   -.56848E-03
  18  norm          4.9053        8.1186        .37478E-06   -.13113E-03
  19  Prefactor     26.407        28.854       -.87535E-05    .17043E-04
  20  Prefactor     .10000E-03    11.965       -.26024E-06** at limit **
  21  Normalizat    1.7606        .26921        .24556E-05    .11150E-03
  22  Prefactor     .71081        .12110        .11284E-05    .21770E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.1987
  norm       = 0.0001
  Prefactor  = 4.7186
  Prefactor  = 0.000100009
  Prefactor  = 25.613
  norm       = 0.0001
  norm       = 5.55183
  norm       = 6.35044
  Prefactor  = 0.0001
  norm       = 88.3511
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.383868
  Prefactor  = 50.6588
  norm       = 4.33391
  norm       = 0.0001
  norm       = 7.98919
  norm       = 4.9053
  Prefactor  = 26.407
  Prefactor  = 0.0001
  Normalizat = 1.76057
  Prefactor  = 0.710806
 **********
 **   18 **HESSE 
 **********

 FCN=   6410.485     FROM HESSE     STATUS=OK           346 CALLS     3202 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.199        22.450        .81433E-04   -1.4724    
   2  norm          .10000E-03    4.6995        .16951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7186        10.361        .18536E-03   -1.5273    
   4  Prefactor     .10001E-03    66.133        .48490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.613        32.760        .79142E-04   -1.4695    
   6  norm          .10000E-03    1.3238        .17717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.5518        5.8497        .14816E-03   -1.5237    
   8  norm          6.3504        7.7457        .15938E-03   -1.5204    
   9  Prefactor     .10000E-03    9.7241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          88.351        83.883        .42742E-04   -1.3825    
  11  Prefactor     .10000E-03    5.4792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.6287        .33121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .38387        39.225        .27509E-02   -1.5584    
  14  Prefactor     50.659        42.950        .56337E-04   -1.4283    
  15  norm          4.3339        8.9187        .19390E-03   -1.5292    
  16  norm          .10000E-03    3.3741        .28062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.9892        13.813        .70923E-03   -1.5143    
  18  norm          4.9053        8.0916        .18161E-03   -1.5265    
  19  Prefactor     26.407        28.856        .77945E-04   -1.4680    
  20  Prefactor     .10000E-03    12.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.7606        .32194        .30447E-03   -.70697    
  22  Prefactor     .71081        .14430        .21400E-03   -1.0310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80648e-09
Minuit parameter uncertainties:
  1  22.4583
  2  1.30519e-06
  3  10.3645
  4  0.00155741
  5  32.7832
  6  3.0828e-06
  7  5.85028
  8  7.74693
  9  2.16911e-05
  10  83.9956
  11  1.37902e-05
  12  4.13836e-05
  13  7.76491
  14  42.9766
  15  8.92146
  16  4.95902e-06
  17  13.8187
  18  8.09343
  19  28.8715
  20  1.79665e-05
  21  0.322326
  22  0.14438
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  3.839e-01  7.765e+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.108e-01  1.444e-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.761e+00  3.223e-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.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998090/likelihoodResults_548294401_548553601_4FGL_J1349.5-1131_daily_bin1192.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) = 6410.34992871
delta logL = 0.135053551648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6410.26580658
delta logL = 0.219175690272

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4413       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4452       1.0000          .0000       10.000    
     3 'Normalizat'    1.7003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72657       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=   6410.266     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      229 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4434        50.004        .89827E-02    .10049E-02
   2  Index         3.4445        3.7011        .21256        .79439E-04
   3  Normalizat    1.7002        .56365E-01    .69742E-01    .12971E-05
   4  Prefactor     .72661        .26891E-01    .42754E-01    .10877E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.44339
  Index      = 3.44452
  Normalizat = 1.70021
  Prefactor  = 0.726607
 **********
 **   18 **HESSE 
 **********

 FCN=   6410.266     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4434        4.2960        .14017E-03   -1.5468    
   2  Index         3.4445        1.5656        .88420E-02   -.31635    
   3  Normalizat    1.7002        .31298        .30852E-03   -.72298    
   4  Prefactor     .72661        .14421        .21181E-03   -1.0249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17111e-08
Minuit parameter uncertainties:
  1  4.29694
  2  1.59544
  3  0.313342
  4  0.144285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998090': 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) = 6410.26580634
delta logL = 0.219175931096

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.443e+00  4.297e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.445e+00  1.595e+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:  7.266e-01  1.443e-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.700e+00  3.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/998090/cmap_HighResolution_548294401_548553601_4FGL_J1349.5-1131_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.54e-07', time_completed='2021-09-08 14:41:46.308784', job_id='998090', GAL2='0.73', fit_tolerance='1e-08', EG2='1.70', EG='1.76', time_epoch_completed='1631137306.31', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.19e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1192' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:41:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 998090: <4FGL_J1349.5-1131_daily_bin1192> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1192 207.387 -11.5188 548294401 548553601 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 :                                   641.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            973 sec.

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

