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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1475
RA = 207.387, Dec = -11.5188
tmin = 621648001, tmax = 621907201
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='401', job_status='RUN', time_executed='2021-09-08 14:36:25.541483', time_epoch_executed='1631136985.54' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401/ft1_4FGL_J1349.5-1131_daily_bin1475.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401/ft2_4FGL_J1349.5-1131_daily_bin1475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401/ft1_4FGL_J1349.5-1131_daily_bin1475.fits outfile=/scratch/kocevski/401/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1475.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=621648001.0 tmax=621907201.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 5.41
user 5.12
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401/ft1_filtered_4FGL_J1349.5-1131_daily_bin1475.fits" evtable="EVENTS" scfile=/scratch/kocevski/401/ft2_4FGL_J1349.5-1131_daily_bin1475.fits sctable="SC_DATA" outfile=/scratch/kocevski/401/ltcube_621648001_621907201_4FGL_J1349.5-1131_daily_bin1475.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/401/ft2_4FGL_J1349.5-1131_daily_bin1475.fits
.....................!
real 15.20
user 14.83
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401/ft1_filtered_4FGL_J1349.5-1131_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/401/ft2_4FGL_J1349.5-1131_daily_bin1475.fits sctable="SC_DATA" expcube=/scratch/kocevski/401/ltcube_621648001_621907201_4FGL_J1349.5-1131_daily_bin1475.fits outfile=/scratch/kocevski/401/expmap_621648001_621907201_4FGL_J1349.5-1131_daily_bin1475.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/401/ltcube_621648001_621907201_4FGL_J1349.5-1131_daily_bin1475.fits
.....................!
real 192.71
user 187.39
sys 4.64

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/401/ft1_filtered_4FGL_J1349.5-1131_daily_bin1475.fits scfile=/scratch/kocevski/401/ft2_4FGL_J1349.5-1131_daily_bin1475.fits outfile=/scratch/kocevski/401/cmap_621648001_621907201_4FGL_J1349.5-1131_daily_bin1475.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.40
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/401/ft1_filtered_4FGL_J1349.5-1131_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/401/ft2_4FGL_J1349.5-1131_daily_bin1475.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/401/Model_4FGL_J1349.5-1131_daily_bin1475.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/401/ft1_filtered_4FGL_J1349.5-1131_daily_bin1475.fits.....................!
real 53.51
user 52.07
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0979       1.0000         .10000E-03   10000.    
     2 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.920       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7449       1.0000         .10000E-03   10000.    
     6 'norm      '    .91578       1.0000         .10000E-03   10000.    
     7 'norm      '    .99095E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.470       1.0000         .10000E-03   10000.    
    10 'norm      '    10.735       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22148E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .41549       1.0000         .10000E-03   10000.    
    16 'norm      '    39.137       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6184       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0298       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1257       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97341       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=   6248.098     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2481 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0997        11.354        .18530E-05   -.45891E-03
   2  norm          .10000E-03    25.958        .28058E-06** at limit **
   3  Prefactor     13.920        10.347       -.22702E-06   -.49377E-04
   4  Prefactor     .10000E-03    5.6238       -.80599E-08** at limit **
   5  Prefactor     9.9786        22.261        .61681E-06    .64852E-04
   6  norm          .91750        2.2514        .54228E-07   -.41678E-03
   7  norm          .48457E-01    2.7691       -.58103E-07   -.32556E-04
   8  norm          .10000E-03    2.2678        .17159E-07** at limit **
   9  Prefactor     11.478        15.393       -.30759E-05   -.32450E-03
  10  norm          10.743        32.493        .28188E-06    .50402E-05
  11  Prefactor     .10000E-03    9.1092        .51473E-07** at limit **
  12  norm          .10000E-03    2.5777        .47610E-08** at limit **
  13  Prefactor     .10001E-03    3.1602       -.16736E-06** at limit **
  14  Prefactor     .10000E-03    19.162       -.19264E-06** at limit **
  15  norm          .43841        6.1557        .20288E-07   -.11491E-03
  16  norm          39.141        6.3333       -.21219E-07    .11372E-03
  17  norm          .10000E-03    4.6304        .44754E-09** at limit **
  18  norm          3.6161        8.0688        .63845E-06    .43714E-05
  19  Prefactor     2.0473        97.394        .50081E-05    .15898E-04
  20  Prefactor     .10000E-03    7.6182        .61519E-08** at limit **
  21  Normalizat    1.1249        .27392       -.40944E-06    .29394E-04
  22  Prefactor     .97364        .13167        .17678E-06   -.11984E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.09975
  norm       = 0.0001
  Prefactor  = 13.9203
  Prefactor  = 0.0001
  Prefactor  = 9.97858
  norm       = 0.917498
  norm       = 0.0484574
  norm       = 0.0001
  Prefactor  = 11.4777
  norm       = 10.7428
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.438412
  norm       = 39.1409
  norm       = 0.0001
  norm       = 3.61608
  Prefactor  = 2.04731
  Prefactor  = 0.0001
  Normalizat = 1.12487
  Prefactor  = 0.973645
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.098     FROM HESSE     STATUS=OK           352 CALLS     2833 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0997        15.331        .89036E-03   -1.5256    
   2  norm          .10000E-03    26.888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.920        10.439        .10736E-03   -1.4962    
   4  Prefactor     .10000E-03    5.6484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.9786        254.00        .12837E-03   -1.5076    
   6  norm          .91750        2.3063        .16808E-03   -1.5516    
   7  norm          .48457E-01    1211.9        .20883E-02   -1.5664    
   8  norm          .10000E-03    2.2711        .11620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.478        16.181        .11829E-03   -1.5030    
  10  norm          10.743        32.497        .12229E-03   -1.5052    
  11  Prefactor     .10000E-03    9.2352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.6027        .12391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    36.726        .25205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .43841        18.490        .35794E-02   -1.5576    
  16  norm          39.141        6.3678        .64070E-04   -1.4456    
  17  norm          .10000E-03    4.6312        .16612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6161        8.0078        .21240E-03   -1.5328    
  19  Prefactor     2.0473        96.068        .29037E-03   -1.5422    
  20  Prefactor     .10000E-03    7.6218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1249        .37833        .35802E-03   -.88957    
  22  Prefactor     .97364        .17295        .19710E-03   -.93613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21026e-07
Minuit parameter uncertainties:
  1  15.3429
  2  1.7838e-05
  3  10.4403
  4  3.5619e-07
  5  101.17
  6  2.30654
  7  15.6381
  8  2.60857e-07
  9  16.187
  10  32.5507
  11  0.000115543
  12  5.63757e-06
  13  0.00129467
  14  1.54844e-05
  15  5.69545
  16  6.36786
  17  2.43677e-07
  18  8.01017
  19  28.0959
  20  6.83916e-07
  21  0.379243
  22  0.173047
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.295e-03  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:  9.736e-01  1.730e-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.125e+00  3.792e-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.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/401/likelihoodResults_621648001_621907201_4FGL_J1349.5-1131_daily_bin1475.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) = 6248.09790299
delta logL = -0.000128939137539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6248.09765771
delta logL = 0.000116346080176

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34641E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6725       1.0000          .0000       10.000    
     3 'Normalizat'    1.1250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97359       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=   6247.785     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      266 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14989        3.4768        .92055E-02    .25540E-02
   2  Index         4.8122        3.4519        .15807        .12060E-03
   3  Normalizat    1.0555        .46231E-01    .83121E-01    .47405E-04
   4  Prefactor     .99581        .23981E-01    .45936E-01    .76334E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.149887
  Index      = 4.81216
  Normalizat = 1.05545
  Prefactor  = 0.995813
 **********
 **   18 **HESSE 
 **********

 FCN=   6247.785     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      299 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14989        14.090        .42856E-03   -1.5631    
   2  Index         4.8122        6.9637        .87656E-02   -.37576E-01
   3  Normalizat    1.0555        .19684        .36804E-03   -.91195    
   4  Prefactor     .99581        .10046        .19513E-03   -.92869    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.68127e-08
Minuit parameter uncertainties:
  1  2.90626
  2  10.6788
  3  0.196974
  4  0.100483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6247.7849682
delta logL = 0.312805851427

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.499e-01  2.906e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  4.812e+00  1.068e+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:  9.958e-01  1.005e-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.055e+00  1.970e-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/401/cmap_HighResolution_621648001_621907201_4FGL_J1349.5-1131_daily_bin1475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.48e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-08 14:47:18.339992', job_id='401', GAL2='1.00', fit_tolerance='1e-08', EG2='1.06', EG='1.12', time_epoch_completed='1631137638.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.13e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1475' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:47:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 401: <4FGL_J1349.5-1131_daily_bin1475> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1475> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 14:35:20 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:35:25 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:35:25 2021
Terminated at Wed Sep  8 14:47:19 2021
Results reported at Wed Sep  8 14:47:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1475 207.387 -11.5188 621648001 621907201 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 :                                   623.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            719 sec.

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

