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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1620
RA = 207.387, Dec = -11.5188
tmin = 659232001, tmax = 659491201
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='359375', job_status='RUN', time_executed='2021-12-08 00:47:18.481733', time_epoch_executed='1638953238.48' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359375

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359375/ft1_4FGL_J1349.5-1131_daily_bin1620.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359375/ft2_4FGL_J1349.5-1131_daily_bin1620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359375/ft1_4FGL_J1349.5-1131_daily_bin1620.fits outfile=/scratch/kocevski/359375/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1620.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=659232001.0 tmax=659491201.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 2.86
user 2.64
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/359375/ft1_filtered_4FGL_J1349.5-1131_daily_bin1620.fits" evtable="EVENTS" scfile=/scratch/kocevski/359375/ft2_4FGL_J1349.5-1131_daily_bin1620.fits sctable="SC_DATA" outfile=/scratch/kocevski/359375/ltcube_659232001_659491201_4FGL_J1349.5-1131_daily_bin1620.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/359375/ft2_4FGL_J1349.5-1131_daily_bin1620.fits
.....................!
real 14.26
user 13.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359375/ft1_filtered_4FGL_J1349.5-1131_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/359375/ft2_4FGL_J1349.5-1131_daily_bin1620.fits sctable="SC_DATA" expcube=/scratch/kocevski/359375/ltcube_659232001_659491201_4FGL_J1349.5-1131_daily_bin1620.fits outfile=/scratch/kocevski/359375/expmap_659232001_659491201_4FGL_J1349.5-1131_daily_bin1620.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/359375/ltcube_659232001_659491201_4FGL_J1349.5-1131_daily_bin1620.fits
.....................!
real 192.18
user 186.04
sys 5.63

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/359375/ft1_filtered_4FGL_J1349.5-1131_daily_bin1620.fits scfile=/scratch/kocevski/359375/ft2_4FGL_J1349.5-1131_daily_bin1620.fits outfile=/scratch/kocevski/359375/cmap_659232001_659491201_4FGL_J1349.5-1131_daily_bin1620.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.36
sys 0.17

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/359375/ft1_filtered_4FGL_J1349.5-1131_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/359375/ft2_4FGL_J1349.5-1131_daily_bin1620.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/359375/Model_4FGL_J1349.5-1131_daily_bin1620.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/359375/ft1_filtered_4FGL_J1349.5-1131_daily_bin1620.fits......................!
real 39.40
user 38.11
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3521       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2020       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6103       1.0000         .10000E-03   10000.    
     6 'norm      '    .96726       1.0000         .10000E-03   10000.    
     7 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.5113       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4016       1.0000         .10000E-03   10000.    
    10 'norm      '    37.109       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1334       1.0000         .10000E-03   10000.    
    12 'norm      '    .55301E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.504       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    19.163       1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81590       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1833       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=   4128.825     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2835 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3540        11.908        .15425E-06   -.57720E-06
   2  norm          .10000E-03    6.5612       -.60055E-07** at limit **
   3  Prefactor     .10000E-03    4.8639        .30061E-06** at limit **
   4  Prefactor     3.2040        7.4975        .87580E-06    .22812E-04
   5  Prefactor     1.6342        102.77       -.66702E-05   -.29891E-04
   6  norm          .96750        2.0177        .16455E-06   -.32744E-05
   7  norm          .10000E-03    4.1210        .14365E-05** at limit **
   8  norm          8.5152        11.104        .13068E-05    .46401E-04
   9  Prefactor     7.3862        27.534        .15038E-05    .70861E-04
  10  norm          37.113        35.704       -.41022E-07    .82245E-05
  11  Prefactor     6.1299        23.877       -.11189E-05    .56144E-04
  12  norm          .10002E-03    8.5317       -.15788E-05** at limit **
  13  Prefactor     13.503        11.380        .10850E-06    .47851E-04
  14  Prefactor     .10000E-03    22.790       -.85394E-07** at limit **
  15  norm          19.163        18.243       -.16021E-06    .19557E-04
  16  norm          .10000E-03    2.3158       -.75184E-07** at limit **
  17  norm          .10000E-03    14.209       -.14685E-07** at limit **
  18  norm          .10000E-03    8.0163       -.84545E-07** at limit **
  19  Prefactor     .10000E-03    59.117       -.77364E-06** at limit **
  20  Prefactor     .10000E-03    46.425        .46738E-06** at limit **
  21  Normalizat    .81584        .34686       -.34959E-06    .70242E-04
  22  Prefactor     1.1832        .17540        .45936E-06    .16802E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.35399
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.20398
  Prefactor  = 1.63416
  norm       = 0.967503
  norm       = 0.0001
  norm       = 8.51523
  Prefactor  = 7.38617
  norm       = 37.1128
  Prefactor  = 6.12993
  norm       = 0.000100018
  Prefactor  = 13.503
  Prefactor  = 0.0001
  norm       = 19.1631
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Normalizat = 0.815842
  Prefactor  = 1.18318
 **********
 **   18 **HESSE 
 **********

 FCN=   4128.825     FROM HESSE     STATUS=OK           342 CALLS     3177 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3540        11.896        .17372E-03   -1.5245    
   2  norm          .10000E-03    6.6187        .16076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8777        .13839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2040        7.4580        .22642E-03   -1.5350    
   5  Prefactor     1.6342        107.28        .33380E-03   -1.5452    
   6  norm          .96750        1.9590        .11569E-03   -1.5511    
   7  norm          .10000E-03    4.1170        .12591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.5152        10.944        .13741E-03   -1.5124    
   9  Prefactor     7.3862        26.785        .14742E-03   -1.5164    
  10  norm          37.113        35.700        .65791E-04   -1.4489    
  11  Prefactor     6.1299        23.198        .16211E-03   -1.5213    
  12  norm          .10002E-03    21.702        .33029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.503        11.362        .10900E-03   -1.4973    
  14  Prefactor     .10000E-03    22.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.163        18.209        .91495E-04   -1.4832    
  16  norm          .10000E-03    2.3562        .95458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.0279        .17769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    58.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    46.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .81584        .37675        .39786E-03   -.99484    
  22  Prefactor     1.1832        .19604        .18971E-03   -.86850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.32376e-10
Minuit parameter uncertainties:
  1  11.901
  2  3.10059e-06
  3  5.53263e-06
  4  7.46019
  5  26.5304
  6  1.9591
  7  1.52453e-05
  8  10.9471
  9  26.8285
  10  35.7204
  11  23.2324
  12  0.00124171
  13  11.3635
  14  3.71376e-05
  15  18.2144
  16  1.21781e-06
  17  9.00092e-06
  18  4.08126e-06
  19  0.000389817
  20  0.000325514
  21  0.377962
  22  0.196159
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.350e+01  1.136e+01  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.183e+00  1.962e-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:  8.158e-01  3.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.60
Ra Dec: 207.387 -11.519
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 1.31e-07 +/- 1.10e-07
Energy Flux (Fixed Index): 3.84e-05 +/- 3.23e-05

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) = 4128.57897064
delta logL = 0.245949191799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4128.57063705
delta logL = 0.254282782145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.694       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0174       1.0000          .0000       10.000    
     3 'Normalizat'    .86535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1690       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=   4128.571     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      231 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.702        16.293        .27059E-02    .22334E-03
   2  Index         2.0181        .70438        .21130       -.22864E-04
   3  Normalizat    .86584        .30726        .87509E-01    .15684E-04
   4  Prefactor     1.1690        .17171        .35409E-01   -.21214E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7019
  Index      = 2.01807
  Normalizat = 0.865839
  Prefactor  = 1.16897
 **********
 **   18 **HESSE 
 **********

 FCN=   4128.571     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .31E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.702        12.505        .54119E-03   -1.4967    
   2  Index         2.0181        .65735        .75705E-02   -.63899    
   3  Normalizat    .86584        .34178        .38755E-03   -.97671    
   4  Prefactor     1.1690        .19121        .19078E-03   -.87291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.117e-13
Minuit parameter uncertainties:
  1  12.5073
  2  0.660321
  3  0.342634
  4  0.191318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359375': 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) = 4128.57063197
delta logL = 0.254287870862

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.370e+01  1.251e+01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.018e+00  6.603e-01  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.169e+00  1.913e-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:  8.658e-01  3.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 2.02 +/- 0.66
Photon Flux (Free Index): 7.55e-08 +/- 1.00e-07
Energy Flux (Free Index): 5.00e-05 +/- 5.05e-05

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/359375/cmap_HighResolution_659232001_659491201_4FGL_J1349.5-1131_daily_bin1620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-07', energy_flux2='5.00e-05', photon_flux_error='1.10e-07', dlogl='2.54e-01', energy_flux='3.84e-05', photon_flux2='7.55e-08', job_status='DONE', time_completed='2021-12-08 00:55:16.525063', photon_index_error2='0.66', photon_index2='2.02', ts='4.60', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='5.05e-05', EG='0.82', time_epoch_completed='1638953716.53', return_code='0', job_id='359375', GAL2='1.17', EG2='0.87', return_code2='0', energy_flux_error='3.23e-05', photon_flux_error2='1.00e-07', ts2='5.14', photon_index='2.49' WHERE bin_id='1620' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 00:55:16 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 359375: <4FGL_J1349.5-1131_daily_bin1620> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1620 207.387 -11.5188 659232001 659491201 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 :                                   477.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            599 sec.

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

