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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin688
RA = 207.387, Dec = -11.5188
tmin = 417657601, tmax = 417916801
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='995421', job_status='RUN', time_executed='2021-09-08 14:16:12.199483', time_epoch_executed='1631135772.2' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='688'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995421

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995421/ft1_4FGL_J1349.5-1131_daily_bin688.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995421/ft2_4FGL_J1349.5-1131_daily_bin688.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995421/ft1_4FGL_J1349.5-1131_daily_bin688.fits outfile=/scratch/kocevski/995421/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin688.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=417657601.0 tmax=417916801.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.09
user 4.73
sys 0.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/995421/ft2_4FGL_J1349.5-1131_daily_bin688.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/995421/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin688.fits evtable="EVENTS" outfile="/scratch/kocevski/995421/ft1_filtered_4FGL_J1349.5-1131_daily_bin688.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.48
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995421/ft1_filtered_4FGL_J1349.5-1131_daily_bin688.fits" evtable="EVENTS" scfile=/scratch/kocevski/995421/ft2_4FGL_J1349.5-1131_daily_bin688.fits sctable="SC_DATA" outfile=/scratch/kocevski/995421/ltcube_417657601_417916801_4FGL_J1349.5-1131_daily_bin688.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/995421/ft2_4FGL_J1349.5-1131_daily_bin688.fits
.....................!
real 15.64
user 15.21
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995421/ft1_filtered_4FGL_J1349.5-1131_daily_bin688.fits evtable="EVENTS" scfile=/scratch/kocevski/995421/ft2_4FGL_J1349.5-1131_daily_bin688.fits sctable="SC_DATA" expcube=/scratch/kocevski/995421/ltcube_417657601_417916801_4FGL_J1349.5-1131_daily_bin688.fits outfile=/scratch/kocevski/995421/expmap_417657601_417916801_4FGL_J1349.5-1131_daily_bin688.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/995421/ltcube_417657601_417916801_4FGL_J1349.5-1131_daily_bin688.fits
.....................!
real 158.04
user 153.19
sys 4.25

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/995421/ft1_filtered_4FGL_J1349.5-1131_daily_bin688.fits scfile=/scratch/kocevski/995421/ft2_4FGL_J1349.5-1131_daily_bin688.fits outfile=/scratch/kocevski/995421/cmap_417657601_417916801_4FGL_J1349.5-1131_daily_bin688.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.50
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995421/ft1_filtered_4FGL_J1349.5-1131_daily_bin688.fits scfile=/scratch/kocevski/995421/ft2_4FGL_J1349.5-1131_daily_bin688.fits outfile=/scratch/kocevski/995421/cmap_HighResolution_417657601_417916801_4FGL_J1349.5-1131_daily_bin688.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.49
user 0.32
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/995421/ft1_filtered_4FGL_J1349.5-1131_daily_bin688.fits evtable="EVENTS" scfile=/scratch/kocevski/995421/ft2_4FGL_J1349.5-1131_daily_bin688.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/995421/Model_4FGL_J1349.5-1131_daily_bin688.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/995421/ft1_filtered_4FGL_J1349.5-1131_daily_bin688.fits.....................!
real 52.26
user 51.01
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.6101       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.882       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .52964       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.4642       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1318       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11444E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14988E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .56539       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8453       1.0000         .10000E-03   10000.    
    17 'norm      '    8.9962       1.0000         .10000E-03   10000.    
    18 'norm      '    5.1302       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4112       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86494       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=   7386.459     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2038 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.649       -.92489E-06** at limit **
   2  norm          5.6113        8.8550       -.10496E-06   -.18908E-04
   3  Prefactor     .10000E-03    5.3069        .53258E-08** at limit **
   4  Prefactor     49.877        15.385        .17092E-05    .73279E-03
   5  Prefactor     .10000E-03    7.0128        .64584E-06** at limit **
   6  norm          .53080        1.4633        .19738E-06   -.62865E-03
   7  norm          .10000E-03    1.1275        .77916E-08** at limit **
   8  norm          4.4653        4.7810        .94950E-06    .31674E-03
   9  Prefactor     .10000E-03    3.4251       -.19473E-07** at limit **
  10  norm          1.1932        168.70       -.26807E-05   -.27578E-04
  11  Prefactor     .10000E-03    18.910        .55567E-06** at limit **
  12  norm          .10000E-03    1.1267        .20053E-07** at limit **
  13  Prefactor     .10000E-03    3.5238       -.33421E-07** at limit **
  14  Prefactor     .10000E-03    124.41       -.25341E-05** at limit **
  15  norm          .56272        5.7253        .16245E-06   -.15407E-03
  16  norm          3.8451        2.7832       -.30001E-07   -.11620E-03
  17  norm          8.9934        14.053        .22104E-05    .18680E-03
  18  norm          5.1306        4.6796        .15047E-05   -.20998E-02
  19  Prefactor     .10000E-03    8.2140       -.41592E-05** at limit **
  20  Prefactor     .10000E-03    8.7223        .40144E-05** at limit **
  21  Normalizat    1.4112        .23032       -.17276E-05    .52656E-04
  22  Prefactor     .86505        .11226        .73399E-07   -.75898E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.61134
  Prefactor  = 0.0001
  Prefactor  = 49.8767
  Prefactor  = 0.0001
  norm       = 0.530799
  norm       = 0.0001
  norm       = 4.46534
  Prefactor  = 0.0001
  norm       = 1.19319
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.562717
  norm       = 3.84509
  norm       = 8.9934
  norm       = 5.1306
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Normalizat = 1.41119
  Prefactor  = 0.865047
 **********
 **   18 **HESSE 
 **********

 FCN=   7386.459     FROM HESSE     STATUS=OK           344 CALLS     2382 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.6113        8.8477        .16961E-03   -1.5234    
   3  Prefactor     .10000E-03    5.3657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     49.877        15.549        .56780E-04   -1.4294    
   5  Prefactor     .10000E-03    7.0232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .53080        1.4685        .16617E-03   -1.5562    
   7  norm          .10000E-03    1.1320        .89059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.4653        4.7750        .18823E-03   -1.5285    
   9  Prefactor     .10000E-03    3.4286        .15533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1932        176.90        .43887E-03   -1.5490    
  11  Prefactor     .10000E-03    19.705        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.1288        .89086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.6332        .31406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    126.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .56272        18.767        .38701E-02   -1.5558    
  16  norm          3.8451        2.7929        .11463E-03   -1.5316    
  17  norm          8.9934        14.093        .13363E-03   -1.5108    
  18  norm          5.1306        6.6767        .88751E-03   -1.5255    
  19  Prefactor     .10000E-03    8.3727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.9045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4112        .27146        .31482E-03   -.80306    
  22  Prefactor     .86505        .13336        .19834E-03   -.97373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00283e-08
Minuit parameter uncertainties:
  1  8.09935e-05
  2  8.8498
  3  1.30317e-05
  4  15.5502
  5  1.71654e-05
  6  1.46857
  7  5.6251e-06
  8  4.77546
  9  8.17878e-08
  10  29.1441
  11  7.69219e-05
  12  6.67181e-07
  13  1.58161e-06
  14  0.000483661
  15  6.50099
  16  2.793
  17  14.0983
  18  6.67763
  19  0.000248935
  20  0.00025847
  21  0.271737
  22  0.133407
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.582e-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:  8.650e-01  1.334e-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.411e+00  2.717e-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: 8.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995421/likelihoodResults_417657601_417916801_4FGL_J1349.5-1131_daily_bin688.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) = 7386.46032249
delta logL = -0.00131368737857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7386.45900716
delta logL = 1.64920402312e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4374       1.0000          .0000       10.000    
     3 'Normalizat'    1.4112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86502       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.

 FCN=   7386.459     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      274 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    190.42        .35955E-02** at limit **
   2  Index         1.8403        8.4313        .50000       -.38360E-06
   3  Normalizat    1.4112        .18975E-01    .31482E-03   -.10519E-02
   4  Prefactor     .86505        .96946E-02    .19834E-03   -.16250E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.84025
  Normalizat = 1.41118
  Prefactor  = 0.865047
 **********
 **   18 **HESSE 
 **********

 FCN=   7386.459     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6482.3        .14382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8403        7.8540        .50000       -.68407    
   3  Normalizat    1.4112        .10721        .62963E-04   -.80306    
   4  Prefactor     .86505        .54777E-01    .39667E-04   -.97373    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06222e-08
Minuit parameter uncertainties:
  1  0.000430155
  2  871.792
  3  0.107225
  4  0.0547801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995421': 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) = 7386.45899768
delta logL = 1.11242170533e-05

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.302e-04  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.840e+00  8.718e+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:  8.650e-01  5.478e-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.411e+00  1.072e-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/995421/cmap_HighResolution_417657601_417916801_4FGL_J1349.5-1131_daily_bin688.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.87e-03', job_status='DONE', photon_flux_upper_limit='8.83e-08', time_completed='2021-09-08 14:25:14.254331', job_id='995421', GAL2='0.87', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1631136314.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.11e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='688' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:25:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 995421: <4FGL_J1349.5-1131_daily_bin688> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin688 207.387 -11.5188 417657601 417916801 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 :                                   536.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            574 sec.

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

