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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1008
RA = 207.387, Dec = -11.5188
tmin = 500601601, tmax = 500860801
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='997884', job_status='RUN', time_executed='2021-09-08 14:25:34.509391', time_epoch_executed='1631136334.51' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997884

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997884/ft1_4FGL_J1349.5-1131_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997884/ft2_4FGL_J1349.5-1131_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997884/ft1_4FGL_J1349.5-1131_daily_bin1008.fits outfile=/scratch/kocevski/997884/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1008.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=500601601.0 tmax=500860801.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.23
user 4.95
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997884/ft1_filtered_4FGL_J1349.5-1131_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/997884/ft2_4FGL_J1349.5-1131_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/997884/ltcube_500601601_500860801_4FGL_J1349.5-1131_daily_bin1008.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/997884/ft2_4FGL_J1349.5-1131_daily_bin1008.fits
.....................!
real 17.15
user 16.77
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997884/ft1_filtered_4FGL_J1349.5-1131_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/997884/ft2_4FGL_J1349.5-1131_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/997884/ltcube_500601601_500860801_4FGL_J1349.5-1131_daily_bin1008.fits outfile=/scratch/kocevski/997884/expmap_500601601_500860801_4FGL_J1349.5-1131_daily_bin1008.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/997884/ltcube_500601601_500860801_4FGL_J1349.5-1131_daily_bin1008.fits
.....................!
real 192.10
user 186.51
sys 5.05

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1349.5-1131 @ 207.387 -11.5188

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/997884/ft1_filtered_4FGL_J1349.5-1131_daily_bin1008.fits scfile=/scratch/kocevski/997884/ft2_4FGL_J1349.5-1131_daily_bin1008.fits outfile=/scratch/kocevski/997884/cmap_500601601_500860801_4FGL_J1349.5-1131_daily_bin1008.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997884/ft1_filtered_4FGL_J1349.5-1131_daily_bin1008.fits scfile=/scratch/kocevski/997884/ft2_4FGL_J1349.5-1131_daily_bin1008.fits outfile=/scratch/kocevski/997884/cmap_HighResolution_500601601_500860801_4FGL_J1349.5-1131_daily_bin1008.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=207.387 yref=-11.5188 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997884/ft1_filtered_4FGL_J1349.5-1131_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/997884/ft2_4FGL_J1349.5-1131_daily_bin1008.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997884/Model_4FGL_J1349.5-1131_daily_bin1008.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/997884/ft1_filtered_4FGL_J1349.5-1131_daily_bin1008.fits.....................!
real 85.69
user 84.15
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.182       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4191       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10112E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2729       1.0000         .10000E-03   10000.    
     7 'norm      '    12.784       1.0000         .10000E-03   10000.    
     8 'norm      '    .93998       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9344       1.0000         .10000E-03   10000.    
    10 'norm      '    .10212E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8596       1.0000         .10000E-03   10000.    
    12 'norm      '    .12641E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .38889E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11656E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.7939       1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.735       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1129       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3947       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1908       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=   11248.21     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2130 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.207        13.196        .70748E-06    .25124E-03
   2  norm          .10000E-03    2.8885        .80006E-09** at limit **
   3  Prefactor     6.4192        5.7254       -.10031E-05   -.77976E-03
   4  Prefactor     .10000E-03    8.5452        .17552E-06** at limit **
   5  Prefactor     .10002E-03    16.414        .10318E-05** at limit **
   6  norm          2.2731        1.5253        .63768E-07   -.25114E-03
   7  norm          12.791        5.6451       -.58097E-06   -.15738E-02
   8  norm          .94141        7.3158        .49085E-05   -.65826E-03
   9  Prefactor     3.9323        9.5303        .71115E-06    .63415E-04
  10  norm          .10000E-03    16.239        .39727E-08** at limit **
  11  Prefactor     1.8610        10.814        .74353E-06   -.15352E-03
  12  norm          .10000E-03    2.3128       -.17422E-06** at limit **
  13  Prefactor     .10000E-03    1.0168       -.29189E-07** at limit **
  14  Prefactor     .10000E-03    351.25       -.26813E-05** at limit **
  15  norm          .10000E-03    1.5105       -.44416E-09** at limit **
  16  norm          .10000E-03    1.2545        .65371E-07** at limit **
  17  norm          5.7925        5.7166       -.10861E-05   -.60244E-03
  18  norm          .10000E-03    2.9078        .41003E-07** at limit **
  19  Prefactor     10.725        18.807        .23636E-05    .20778E-03
  20  Prefactor     5.1080        9.2977        .11452E-05    .19207E-03
  21  Normalizat    1.3947        .21330       -.66572E-06   -.20669E-03
  22  Prefactor     1.1906        .10939       -.24067E-06   -.27862E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.2069
  norm       = 0.0001
  Prefactor  = 6.41921
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  norm       = 2.2731
  norm       = 12.7908
  norm       = 0.941407
  Prefactor  = 3.93225
  norm       = 0.0001
  Prefactor  = 1.86095
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.79254
  norm       = 0.0001
  Prefactor  = 10.7245
  Prefactor  = 5.10802
  Normalizat = 1.3947
  Prefactor  = 1.19064
 **********
 **   18 **HESSE 
 **********

 FCN=   11248.21     FROM HESSE     STATUS=OK           346 CALLS     2476 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.207        13.260        .89157E-04   -1.4809    
   2  norm          .10000E-03    2.8897        .17604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.4192        5.8575        .15841E-03   -1.5201    
   4  Prefactor     .10000E-03    8.7290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    67.541        .64577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2731        1.5250        .10202E-03   -1.5406    
   7  norm          12.791        4.7704        .11203E-03   -1.4993    
   8  norm          .94141        8.4896        .51807E-03   -1.5514    
   9  Prefactor     3.9323        9.3966        .20338E-03   -1.5311    
  10  norm          .10000E-03    16.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8610        10.622        .30559E-03   -1.5435    
  12  norm          .10000E-03    9.0571        .30990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.0197        .10442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    365.01        .36863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.5179        .12728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.8300        .22733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.7925        5.8112        .16686E-03   -1.5227    
  18  norm          .10000E-03    2.9278        .17652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.725        19.008        .12228E-03   -1.5053    
  20  Prefactor     5.1080        9.3318        .17781E-03   -1.5256    
  21  Normalizat    1.3947        .24372        .35733E-03   -.80782    
  22  Prefactor     1.1906        .12603        .20176E-03   -.86620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4256e-09
Minuit parameter uncertainties:
  1  13.2623
  2  2.9147e-07
  3  5.85804
  4  3.41884e-05
  5  0.00253291
  6  1.52506
  7  4.77057
  8  5.65485
  9  9.40014
  10  3.44461e-06
  11  8.89406
  12  0.000139325
  13  7.50159e-07
  14  0.000855518
  15  3.11443e-07
  16  5.59999e-06
  17  5.81174
  18  5.5877e-06
  19  19.0186
  20  9.33442
  21  0.24392
  22  0.126059
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  7.502e-07  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.191e+00  1.261e-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.395e+00  2.439e-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: 5.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/997884/likelihoodResults_500601601_500860801_4FGL_J1349.5-1131_daily_bin1008.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) = 11248.2133238
delta logL = -0.00456995387685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11248.2087538
delta logL = 4.24770405516e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4820       1.0000          .0000       10.000    
     3 'Normalizat'    1.3946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1907       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=   11248.21     FROM MIGRAD    STATUS=FAILED        98 CALLS      246 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3053        .10507E-01** at limit **
   2  Index         2.0763        5.7727        .50000       -.35737E-05
   3  Normalizat    1.3947        .14433E-01    .35733E-03    .11485E-03
   4  Prefactor     1.1906        .76585E-02    .20176E-03    .23037E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11248.21     FROM SIMPLEX   STATUS=UNCHANGED    155 CALLS      401 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3053        .18391E-03** at limit **
   2  Index         2.0763        5.7727        .11134E-04   -.35737E-05
   3  Normalizat    1.3947        .14433E-01    .12027E-06    .11485E-03
   4  Prefactor     1.1906        .76585E-02    .19252E-07    .23037E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11248.21     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      432 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    80.442        .11068E-02** at limit **
   2  Index         2.0767        5.3106        .50000        .11264E-06
   3  Normalizat    1.3947        .48585E-01    .14293E-04    .11454E-03
   4  Prefactor     1.1906        .25780E-01    .40353E-04    .22989E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07668
  Normalizat = 1.3947
  Prefactor  = 1.19064
 **********
 **   18 **HESSE 
 **********

 FCN=   11248.21     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      461 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    256.03        .22137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0767        6.6339        .50000       -.62446    
   3  Normalizat    1.3947        .15227        .28586E-05   -.80782    
   4  Prefactor     1.1906        .80777E-01    .80706E-05   -.86620    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.16774e-09
Minuit parameter uncertainties:
  1  0.000141093
  2  1004.48
  3  0.152323
  4  0.0807856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997884': 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) = 11248.2087485
delta logL = 5.35440267413e-06

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.411e-04  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.077e+00  1.004e+03  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.191e+00  8.079e-02  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.395e+00  1.523e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/997884/cmap_HighResolution_500601601_500860801_4FGL_J1349.5-1131_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-03', job_status='DONE', photon_flux_upper_limit='5.27e-08', time_completed='2021-09-08 14:39:47.646878', job_id='997884', GAL2='1.19', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1631137187.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='5.35e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1008' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:39:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 997884: <4FGL_J1349.5-1131_daily_bin1008> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1008 207.387 -11.5188 500601601 500860801 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 :                                   847.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

