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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1618
RA = 207.387, Dec = -11.5188
tmin = 658713601, tmax = 658972801
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='359372', job_status='RUN', time_executed='2021-12-08 00:46:28.573733', time_epoch_executed='1638953188.57' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359372

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359372/ft1_4FGL_J1349.5-1131_daily_bin1618.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359372/ft2_4FGL_J1349.5-1131_daily_bin1618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359372/ft1_4FGL_J1349.5-1131_daily_bin1618.fits outfile=/scratch/kocevski/359372/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1618.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=658713601.0 tmax=658972801.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.00
user 2.79
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/359372/ft1_filtered_4FGL_J1349.5-1131_daily_bin1618.fits" evtable="EVENTS" scfile=/scratch/kocevski/359372/ft2_4FGL_J1349.5-1131_daily_bin1618.fits sctable="SC_DATA" outfile=/scratch/kocevski/359372/ltcube_658713601_658972801_4FGL_J1349.5-1131_daily_bin1618.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/359372/ft2_4FGL_J1349.5-1131_daily_bin1618.fits
.....................!
real 14.31
user 13.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359372/ft1_filtered_4FGL_J1349.5-1131_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/359372/ft2_4FGL_J1349.5-1131_daily_bin1618.fits sctable="SC_DATA" expcube=/scratch/kocevski/359372/ltcube_658713601_658972801_4FGL_J1349.5-1131_daily_bin1618.fits outfile=/scratch/kocevski/359372/expmap_658713601_658972801_4FGL_J1349.5-1131_daily_bin1618.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/359372/ltcube_658713601_658972801_4FGL_J1349.5-1131_daily_bin1618.fits
.....................!
real 192.01
user 186.56
sys 4.52

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/359372/ft1_filtered_4FGL_J1349.5-1131_daily_bin1618.fits scfile=/scratch/kocevski/359372/ft2_4FGL_J1349.5-1131_daily_bin1618.fits outfile=/scratch/kocevski/359372/cmap_658713601_658972801_4FGL_J1349.5-1131_daily_bin1618.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.54
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/359372/ft1_filtered_4FGL_J1349.5-1131_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/359372/ft2_4FGL_J1349.5-1131_daily_bin1618.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/359372/Model_4FGL_J1349.5-1131_daily_bin1618.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/359372/ft1_filtered_4FGL_J1349.5-1131_daily_bin1618.fits.....................!
real 44.70
user 43.38
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.532       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .71813       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10570E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.7748       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11111E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.543       1.0000         .10000E-03   10000.    
    12 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    89.714       1.0000         .10000E-03   10000.    
    15 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.9718       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    75.013       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3465       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1104       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=   4795.257     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2337 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.533        13.953        .64501E-08   -.10994E-04
   2  norm          .10000E-03    3.6033        .47803E-08** at limit **
   3  Prefactor     .10000E-03    3.9779        .87436E-07** at limit **
   4  Prefactor     .76434        6.8630       -.24344E-06    .53167E-04
   5  Prefactor     .10000E-03    30.327       -.90438E-06** at limit **
   6  norm          .10000E-03    1.1098        .22798E-06** at limit **
   7  norm          .10000E-03    4.1692       -.57137E-06** at limit **
   8  norm          9.7766        11.939        .20079E-05   -.93506E-04
   9  Prefactor     .10000E-03    10.249       -.42784E-06** at limit **
  10  norm          .10000E-03    10.245        .84481E-07** at limit **
  11  Prefactor     12.521        20.043       -.10864E-05   -.97687E-04
  12  norm          .10000E-03    2.5350       -.11925E-06** at limit **
  13  Prefactor     .10000E-03    4.7991        .27241E-08** at limit **
  14  Prefactor     89.700        76.959       -.13407E-05   -.37174E-04
  15  norm          .10000E-03    5.9704        .11946E-07** at limit **
  16  norm          1.9716        2.0657       -.15878E-07    .17556E-04
  17  norm          .10000E-03    7.7296       -.47584E-07** at limit **
  18  norm          .10000E-03    17.109       -.53203E-07** at limit **
  19  Prefactor     .10000E-03    28.451        .65861E-06** at limit **
  20  Prefactor     75.004        69.854       -.64825E-06   -.27893E-04
  21  Normalizat    1.3470        .32125       -.10869E-05    .18595E-04
  22  Prefactor     1.1102        .16890        .83688E-07   -.11667E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.5326
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.764343
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.7766
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.5214
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.7
  norm       = 0.0001
  norm       = 1.97159
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.0039
  Normalizat = 1.34696
  Prefactor  = 1.11024
 **********
 **   18 **HESSE 
 **********

 FCN=   4795.257     FROM HESSE     STATUS=OK           340 CALLS     2677 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.533        13.988        .10889E-03   -1.4972    
   2  norm          .10000E-03    3.6042        .12838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9917        .13489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .76434        31.864        .33171E-02   -1.5533    
   5  Prefactor     .10000E-03    30.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.9963        .13867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.4051        .27940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.7766        12.239        .64086E-03   -1.5083    
   9  Prefactor     .10000E-03    10.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.521        20.607        .11310E-03   -1.5000    
  12  norm          .10000E-03    2.5392        .10763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.8319        .14810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     89.700        77.392        .42422E-04   -1.3811    
  15  norm          .10000E-03    6.0070        .16523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9716        2.0737        .99201E-04   -1.5427    
  17  norm          .10000E-03    7.7334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    17.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     75.004        70.210        .23180E-03   -1.3974    
  21  Normalizat    1.3470        .36868        .35348E-03   -.82175    
  22  Prefactor     1.1102        .19620        .21140E-03   -.89140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19717e-10
Minuit parameter uncertainties:
  1  13.9911
  2  1.11626e-07
  3  2.9474e-06
  4  9.87521
  5  0.000158993
  6  1.69593e-05
  7  4.26043e-05
  8  12.2422
  9  3.9118e-05
  10  5.42177e-06
  11  20.6185
  12  3.53693e-06
  13  1.86394e-06
  14  77.4787
  15  2.22908e-06
  16  2.07373
  17  5.11778e-06
  18  2.15007e-05
  19  7.75095e-05
  20  70.2876
  21  0.369411
  22  0.196328
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.864e-06  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:  1.110e+00  1.963e-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.347e+00  3.694e-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.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/359372/likelihoodResults_658713601_658972801_4FGL_J1349.5-1131_daily_bin1618.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) = 4795.25817959
delta logL = -0.000984353720924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4795.25719524
delta logL = -7.7443473856e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5008       1.0000          .0000       10.000    
     3 'Normalizat'    1.3469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1103       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4795.257     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10062E-03    378.73        .14835E-02** at limit **
   2  Index         2.5706        8.0301        .50000       -.87843E-05
   3  Normalizat    1.3470        .77178E-01    .35348E-03   -.10774E-04
   4  Prefactor     1.1102        .42691E-01    .21140E-03   -.17532E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4795.257     FROM SIMPLEX   STATUS=UNCHANGED    149 CALLS      389 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10062E-03    378.73        .38577E-03** at limit **
   2  Index         2.5706        8.0301        .11209E-03   -.87843E-05
   3  Normalizat    1.3470        .77178E-01    .29897E-05   -.10774E-04
   4  Prefactor     1.1102        .42691E-01    .11639E-05   -.17532E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4795.257     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      430 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1087.4        .29671E-03** at limit **
   2  Index         2.7519        7.7870        .50000        .59185E-07
   3  Normalizat    1.3470        .23041        .14139E-04    .85229E-05
   4  Prefactor     1.1102        .12538        .84560E-05    .99489E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.75186
  Normalizat = 1.34696
  Prefactor  = 1.11024
 **********
 **   18 **HESSE 
 **********

 FCN=   4795.257     FROM HESSE     STATUS=OK            29 CALLS      459 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3229        .59341E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7519        8.4911        .50000       -.46635    
   3  Normalizat    1.3470        .34816        .28279E-05   -.82175    
   4  Prefactor     1.1102        .19275        .16912E-05   -.89140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.62319e-12
Minuit parameter uncertainties:
  1  1.984e-05
  2  216.855
  3  0.348768
  4  0.192874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359372': 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) = 4795.25719487
delta logL = 3.65896084986e-07

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.984e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.752e+00  2.169e+02  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:  1.110e+00  1.929e-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.347e+00  3.488e-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/359372/cmap_HighResolution_658713601_658972801_4FGL_J1349.5-1131_daily_bin1618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', job_status='DONE', photon_flux_upper_limit='1.62e-07', time_completed='2021-12-08 00:55:17.387147', job_id='359372', GAL2='1.11', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1638953717.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1618' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 00:55:17 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 359372: <4FGL_J1349.5-1131_daily_bin1618> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1618> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec  8 00:45:18 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 00:45:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 00:45:25 2021
Terminated at Wed Dec  8 00:55:18 2021
Results reported at Wed Dec  8 00:55:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1618 207.387 -11.5188 658713601 658972801 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 :                                   527.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   592 sec.
    Turnaround time :                            600 sec.

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

