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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1055
RA = 207.387, Dec = -11.5188
tmin = 512784001, tmax = 513043201
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='997935', job_status='RUN', time_executed='2021-09-08 14:26:14.857275', time_epoch_executed='1631136374.86' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1055'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997935

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997935/ft1_4FGL_J1349.5-1131_daily_bin1055.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997935/ft2_4FGL_J1349.5-1131_daily_bin1055.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997935/ft1_4FGL_J1349.5-1131_daily_bin1055.fits outfile=/scratch/kocevski/997935/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1055.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=512784001.0 tmax=513043201.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 4.51
user 4.17
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/997935/ft2_4FGL_J1349.5-1131_daily_bin1055.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/997935/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1055.fits evtable="EVENTS" outfile="/scratch/kocevski/997935/ft1_filtered_4FGL_J1349.5-1131_daily_bin1055.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997935/ft1_filtered_4FGL_J1349.5-1131_daily_bin1055.fits" evtable="EVENTS" scfile=/scratch/kocevski/997935/ft2_4FGL_J1349.5-1131_daily_bin1055.fits sctable="SC_DATA" outfile=/scratch/kocevski/997935/ltcube_512784001_513043201_4FGL_J1349.5-1131_daily_bin1055.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/997935/ft2_4FGL_J1349.5-1131_daily_bin1055.fits
.....................!
real 14.57
user 14.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997935/ft1_filtered_4FGL_J1349.5-1131_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/997935/ft2_4FGL_J1349.5-1131_daily_bin1055.fits sctable="SC_DATA" expcube=/scratch/kocevski/997935/ltcube_512784001_513043201_4FGL_J1349.5-1131_daily_bin1055.fits outfile=/scratch/kocevski/997935/expmap_512784001_513043201_4FGL_J1349.5-1131_daily_bin1055.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/997935/ltcube_512784001_513043201_4FGL_J1349.5-1131_daily_bin1055.fits
.....................!
real 191.95
user 185.82
sys 5.73

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/997935/ft1_filtered_4FGL_J1349.5-1131_daily_bin1055.fits scfile=/scratch/kocevski/997935/ft2_4FGL_J1349.5-1131_daily_bin1055.fits outfile=/scratch/kocevski/997935/cmap_512784001_513043201_4FGL_J1349.5-1131_daily_bin1055.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997935/ft1_filtered_4FGL_J1349.5-1131_daily_bin1055.fits scfile=/scratch/kocevski/997935/ft2_4FGL_J1349.5-1131_daily_bin1055.fits outfile=/scratch/kocevski/997935/cmap_HighResolution_512784001_513043201_4FGL_J1349.5-1131_daily_bin1055.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997935/ft1_filtered_4FGL_J1349.5-1131_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/997935/ft2_4FGL_J1349.5-1131_daily_bin1055.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997935/Model_4FGL_J1349.5-1131_daily_bin1055.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/997935/ft1_filtered_4FGL_J1349.5-1131_daily_bin1055.fits.....................!
real 91.72
user 89.95
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    42.638       1.0000         .10000E-03   10000.    
     2 'norm      '    .16310E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6935       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11302E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .12450E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.070       1.0000         .10000E-03   10000.    
     8 'norm      '    .10257E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8255       1.0000         .10000E-03   10000.    
    10 'norm      '    8.4982       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13170E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .87122       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8752       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15245E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.1090       1.0000         .10000E-03   10000.    
    16 'norm      '    .44268       1.0000         .10000E-03   10000.    
    17 'norm      '    7.8553       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4382       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0817       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0111       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=   12665.14     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2064 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          42.578        11.973        .11829E-06    .16973E-05
   2  norm          .10000E-03    3.3099        .32736E-05** at limit **
   3  Prefactor     1.6933        4.3312       -.41796E-06   -.29784E-03
   4  Prefactor     .10000E-03    3.1144       -.18401E-05** at limit **
   5  Prefactor     .10000E-03    6.2765       -.23819E-05** at limit **
   6  norm          .10000E-03    .29669       -.78820E-08** at limit **
   7  norm          11.075        3.0634        .26336E-06    .82001E-03
   8  norm          .10000E-03    3.5015       -.15593E-05** at limit **
   9  Prefactor     2.8180        7.2874       -.50698E-06   -.60169E-04
  10  norm          8.4255        12.245       -.15576E-05   -.66447E-06
  11  Prefactor     .10000E-03    6.4102        .16841E-05** at limit **
  12  norm          .86992        2.7571       -.56979E-07   -.49609E-04
  13  Prefactor     2.8646        2.9702        .22025E-06   -.55740E-03
  14  Prefactor     .10000E-03    15.005        .14813E-05** at limit **
  15  norm          8.0941        5.1778        .91059E-07    .17808E-04
  16  norm          .44183        1.2620        .12159E-06    .12169E-04
  17  norm          7.8562        7.5917        .26660E-07   -.20910E-04
  18  norm          3.4419        3.1160       -.10131E-05    .37721E-04
  19  Prefactor     .10000E-03    8.0632       -.30518E-05** at limit **
  20  Prefactor     .10000E-03    6.8650        .31778E-05** at limit **
  21  Normalizat    1.0819        .15556       -.34687E-08    .99719E-04
  22  Prefactor     1.0111        .84955E-01    .12814E-07    .83630E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 42.5779
  norm       = 0.0001
  Prefactor  = 1.69332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.0751
  norm       = 0.0001
  Prefactor  = 2.81803
  norm       = 8.42552
  Prefactor  = 0.0001
  norm       = 0.869921
  Prefactor  = 2.8646
  Prefactor  = 0.0001
  norm       = 8.09411
  norm       = 0.441828
  norm       = 7.85625
  norm       = 3.44188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08188
  Prefactor  = 1.01111
 **********
 **   18 **HESSE 
 **********

 FCN=   12665.14     FROM HESSE     STATUS=OK           346 CALLS     2410 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          42.578        11.988        .61393E-04   -1.4402    
   2  norm          .10000E-03    3.3069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6933        6.6479        .16171E-02   -1.5448    
   4  Prefactor     .10000E-03    3.1589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7202        .11821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.075        3.0853        .99246E-04   -1.5042    
   8  norm          .10000E-03    3.5905        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8180        7.2532        .24195E-03   -1.5372    
  10  norm          8.4255        12.240        .13751E-03   -1.5127    
  11  Prefactor     .10000E-03    6.6473        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .86992        2.7771        .31824E-03   -1.5521    
  13  Prefactor     2.8646        3.9217        .11446E-02   -1.5369    
  14  Prefactor     .10000E-03    15.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.0941        5.2730        .14079E-03   -1.5139    
  16  norm          .44183        1.2675        .20460E-03   -1.5575    
  17  norm          7.8562        7.5965        .71533E-03   -1.5147    
  18  norm          3.4419        3.1142        .18291E-03   -1.5337    
  19  Prefactor     .10000E-03    8.0749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.8733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0819        .18145        .32331E-03   -.90336    
  22  Prefactor     1.0111        .98301E-01    .18514E-03   -.92360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84088e-10
Minuit parameter uncertainties:
  1  11.9884
  2  2.0804e-06
  3  6.65081
  4  3.67287e-06
  5  1.34983e-05
  6  3.74993e-06
  7  3.08536
  8  1.00784e-05
  9  7.25544
  10  12.2439
  11  7.71413e-06
  12  2.77752
  13  3.92207
  14  3.76358e-06
  15  5.27331
  16  1.2676
  17  7.59746
  18  3.11432
  19  1.21715e-05
  20  2.67419e-06
  21  0.181553
  22  0.0983179
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.865e+00  3.922e+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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.011e+00  9.832e-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.082e+00  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 207.387 -11.519
Photon Flux Upper Limit: 9.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/997935/likelihoodResults_512784001_513043201_4FGL_J1349.5-1131_daily_bin1055.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): 0
logL (Free Index) = 12663.5623678
delta logL = 1.58234494255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12663.4554187
delta logL = 1.68929408123

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12663.46     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      308 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27797E-01    .15010        .22288E-02    .80824E-02
   2  Index         6.0143        1.9363        .14735        .23025E-03
   3  Normalizat    .99082        .37404E-01    .75909E-01    .16115E-04
   4  Prefactor     1.0454        .20879E-01    .40187E-01   -.24922E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0277968
  Index      = 6.01426
  Normalizat = 0.990816
  Prefactor  = 1.04541
 **********
 **   18 **HESSE 
 **********

 FCN=   12663.46     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      341 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27797E-01    .40836        .10121E-03   -1.5675    
   2  Index         6.0143        3.6866        .53101E-02    .20427    
   3  Normalizat    .99082        .13902        .33591E-03   -.93339    
   4  Prefactor     1.0454        .76101E-01    .18243E-03   -.91231    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.39059e-07
Minuit parameter uncertainties:
  1  0.212702
  2  4.17418
  3  0.139068
  4  0.0761092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997935': 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) = 12663.455418
delta logL = 1.68929477851

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.780e-02  2.127e-01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  6.014e+00  4.174e+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:  1.045e+00  7.611e-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:  9.908e-01  1.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.50
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 6.01 +/- 4.17
Photon Flux (Free Index): 9.15e-08 +/- 4.92e-08
Energy Flux (Free Index): 1.14e-05 +/- 7.11e-06

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/997935/cmap_HighResolution_512784001_513043201_4FGL_J1349.5-1131_daily_bin1055.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.73e-03', comment='SUCCESS', energy_flux2='1.14e-05', dlogl='1.69e+00', photon_flux2='9.15e-08', job_status='DONE', time_completed='2021-09-08 14:41:15.324801', photon_index_error2='4.17', photon_index2='6.01', ts='0.76', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='9.95e-08', energy_flux_error2='7.11e-06', EG='1.08', time_epoch_completed='1631137275.32', return_code='0', job_id='997935', GAL2='1.05', EG2='0.99', return_code2='102', photon_flux_error2='4.92e-08', ts2='4.50', photon_index='2.49' WHERE bin_id='1055' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:41:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 997935: <4FGL_J1349.5-1131_daily_bin1055> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1055 207.387 -11.5188 512784001 513043201 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 :                                   895.10 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             332.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            957 sec.

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

