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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin485
RA = 207.387, Dec = -11.5188
tmin = 365040001, tmax = 365299201
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='995110', job_status='RUN', time_executed='2021-09-08 14:17:34.556815', time_epoch_executed='1631135854.56' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995110

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995110/ft1_4FGL_J1349.5-1131_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995110/ft2_4FGL_J1349.5-1131_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995110/ft1_4FGL_J1349.5-1131_daily_bin485.fits outfile=/scratch/kocevski/995110/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin485.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=365040001.0 tmax=365299201.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.66
user 3.43
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995110/ft1_filtered_4FGL_J1349.5-1131_daily_bin485.fits" evtable="EVENTS" scfile=/scratch/kocevski/995110/ft2_4FGL_J1349.5-1131_daily_bin485.fits sctable="SC_DATA" outfile=/scratch/kocevski/995110/ltcube_365040001_365299201_4FGL_J1349.5-1131_daily_bin485.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/995110/ft2_4FGL_J1349.5-1131_daily_bin485.fits
.....................!
real 15.08
user 14.68
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995110/ft1_filtered_4FGL_J1349.5-1131_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/995110/ft2_4FGL_J1349.5-1131_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/995110/ltcube_365040001_365299201_4FGL_J1349.5-1131_daily_bin485.fits outfile=/scratch/kocevski/995110/expmap_365040001_365299201_4FGL_J1349.5-1131_daily_bin485.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/995110/ltcube_365040001_365299201_4FGL_J1349.5-1131_daily_bin485.fits
.....................!
real 190.10
user 185.83
sys 3.65

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/995110/ft1_filtered_4FGL_J1349.5-1131_daily_bin485.fits scfile=/scratch/kocevski/995110/ft2_4FGL_J1349.5-1131_daily_bin485.fits outfile=/scratch/kocevski/995110/cmap_365040001_365299201_4FGL_J1349.5-1131_daily_bin485.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/995110/ft1_filtered_4FGL_J1349.5-1131_daily_bin485.fits scfile=/scratch/kocevski/995110/ft2_4FGL_J1349.5-1131_daily_bin485.fits outfile=/scratch/kocevski/995110/cmap_HighResolution_365040001_365299201_4FGL_J1349.5-1131_daily_bin485.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.57
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/995110/ft1_filtered_4FGL_J1349.5-1131_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/995110/ft2_4FGL_J1349.5-1131_daily_bin485.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/995110/Model_4FGL_J1349.5-1131_daily_bin485.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/995110/ft1_filtered_4FGL_J1349.5-1131_daily_bin485.fits.....................!
real 49.15
user 47.78
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.940       1.0000         .10000E-03   10000.    
     2 'norm      '    5.4590       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1796       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6820       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0191       1.0000         .10000E-03   10000.    
     7 'norm      '    .10458E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.4589       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .85630       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    83.268       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    21.497       1.0000         .10000E-03   10000.    
    18 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.118       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.126       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2471       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79949       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=   5855.183     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2407 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.939        11.416       -.10875E-05    .16177E-04
   2  norm          5.4589        5.6951        .23860E-07    .14563E-03
   3  Prefactor     8.1786        8.8778       -.12400E-05   -.13178E-04
   4  Prefactor     .10000E-03    3.1859        .11251E-06** at limit **
   5  Prefactor     8.6998        16.849        .68798E-05    .19221E-03
   6  norm          1.0191        1.0772       -.26927E-06   -.46825E-03
   7  norm          .10000E-03    3.4321       -.13567E-05** at limit **
   8  norm          4.4595        7.8373       -.33065E-05   -.14985E-03
   9  Prefactor     .77076        9.9161       -.24016E-05   -.85288E-04
  10  norm          .10000E-03    8.9086       -.44821E-06** at limit **
  11  Prefactor     .10000E-03    11.371       -.15348E-06** at limit **
  12  norm          .10000E-03    2.3968       -.90003E-07** at limit **
  13  Prefactor     .10000E-03    5.6654        .53927E-06** at limit **
  14  Prefactor     83.268        57.539       -.54262E-06    .79511E-04
  15  norm          .10000E-03    4.2907       -.32472E-05** at limit **
  16  norm          .10000E-03    1.2297        .10391E-06** at limit **
  17  norm          21.496        15.117       -.15140E-05    .48290E-05
  18  norm          .10000E-03    4.0696        .35991E-05** at limit **
  19  Prefactor     29.100        29.497       -.23133E-04   -.17355E-04
  20  Prefactor     12.121        29.614       -.14497E-04    .65071E-05
  21  Normalizat    1.2470        .23511        .41312E-05    .22722E-03
  22  Prefactor     .79957        .11970        .21792E-05    .39018E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9394
  norm       = 5.45894
  Prefactor  = 8.17859
  Prefactor  = 0.0001
  Prefactor  = 8.69979
  norm       = 1.01911
  norm       = 0.000100001
  norm       = 4.45948
  Prefactor  = 0.770761
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.2676
  norm       = 0.0001
  norm       = 0.0001
  norm       = 21.4961
  norm       = 0.000100001
  Prefactor  = 29.1
  Prefactor  = 12.1208
  Normalizat = 1.24705
  Prefactor  = 0.799568
 **********
 **   18 **HESSE 
 **********

 FCN=   5855.183     FROM HESSE     STATUS=OK           342 CALLS     2749 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.939        11.419        .11135E-03   -1.4988    
   2  norm          5.4589        5.6991        .17198E-03   -1.5241    
   3  Prefactor     8.1786        8.8785        .14018E-03   -1.5136    
   4  Prefactor     .10000E-03    3.2007        .13337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.6998        16.651        .13604E-03   -1.5118    
   6  norm          1.0191        1.0516        .78605E-04   -1.5506    
   7  norm          .10000E-03    3.4698        .27271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.4595        7.7818        .19069E-03   -1.5286    
   9  Prefactor     .77076        92.748        .44884E-02   -1.5532    
  10  norm          .10000E-03    8.9091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4103        .11563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.8609        .35503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     83.268        57.537        .44019E-04   -1.3880    
  15  norm          .10000E-03    4.3307        .15472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2471        .82806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          21.496        15.121        .86388E-04   -1.4780    
  18  norm          .10000E-03    4.1167        .15123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.100        29.541        .74247E-04   -1.4629    
  20  Prefactor     12.121        29.683        .11503E-03   -1.5012    
  21  Normalizat    1.2470        .27710        .30354E-03   -.85161    
  22  Prefactor     .79957        .14206        .19189E-03   -.99744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07288e-09
Minuit parameter uncertainties:
  1  11.4212
  2  5.6997
  3  8.87992
  4  1.37794e-05
  5  16.6594
  6  1.05165
  7  0.000119802
  8  7.78361
  9  16.9358
  10  3.48356e-06
  11  4.12229e-05
  12  9.42826e-06
  13  2.06295e-05
  14  57.5753
  15  4.2576e-06
  16  1.0527e-05
  17  15.1238
  18  9.21903e-05
  19  29.5555
  20  29.7196
  21  0.277424
  22  0.142123
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.063e-05  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.996e-01  1.421e-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.247e+00  2.774e-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.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995110/likelihoodResults_365040001_365299201_4FGL_J1349.5-1131_daily_bin485.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) = 5855.18409985
delta logL = -0.000814510037344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5855.18328711
delta logL = -1.76982211997e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13616E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5456       1.0000          .0000       10.000    
     3 'Normalizat'    1.2471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79956       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=   5855.137     FROM MIGRAD    STATUS=FAILED       181 CALLS      338 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33942        26.770        .23132E-02   -.23616E-01
   2  Index         3.8059        2.6423        .39104        .15708E-04
   3  Normalizat    1.2218        .34819E-01    .30354E-03   -.13109E-05
   4  Prefactor     .80623        .18097E-01    .19189E-03    .15997E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5855.137     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      410 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33942        26.770        .13142E-03   -.23616E-01
   2  Index         3.8059        2.6423        .26704E-02    .15708E-04
   3  Normalizat    1.2218        .34819E-01    .10518E-03   -.13109E-05
   4  Prefactor     .80623        .18097E-01    .31731E-04    .15997E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5855.137     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      445 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33942        2.0545        .46263E-03   -.94395E-03
   2  Index         3.8059        2.4007        .76531E-02    .65994E-04
   3  Normalizat    1.2218        .27956        .12142E-04    .13109E-05
   4  Prefactor     .80623        .14121        .76755E-05    .44435E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.339421
  Index      = 3.80591
  Normalizat = 1.2218
  Prefactor  = 0.806231
 **********
 **   18 **HESSE 
 **********

 FCN=   5855.137     FROM HESSE     STATUS=OK            27 CALLS      472 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33942        2.0346        .92527E-04   -1.5824    
   2  Index         3.8059        2.3828        .15306E-02   -.24115    
   3  Normalizat    1.2218        .27929        .24283E-05   -.85932    
   4  Prefactor     .80623        .14094        .15351E-05   -.99499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2225e-12
Minuit parameter uncertainties:
  1  1.66185
  2  2.49064
  3  0.279634
  4  0.141002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995110': 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) = 5855.13690848
delta logL = 0.0463768539385

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  3.394e-01  1.662e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.806e+00  2.491e+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.062e-01  1.410e-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.222e+00  2.796e-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/995110/cmap_HighResolution_365040001_365299201_4FGL_J1349.5-1131_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.55e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-08 14:27:24.280144', job_id='995110', GAL2='0.81', fit_tolerance='1e-08', EG2='1.22', EG='1.25', time_epoch_completed='1631136444.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='4.64e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='485' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:27:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 995110: <4FGL_J1349.5-1131_daily_bin485> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin485> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 14:15:16 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:15:17 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:17 2021
Terminated at Wed Sep  8 14:27:25 2021
Results reported at Wed Sep  8 14:27:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin485 207.387 -11.5188 365040001 365299201 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 :                                   588.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            729 sec.

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

