/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 128 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7403
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1349.5-1131_daily_bin878
RA = 207.387, Dec = -11.5188
tmin = 466905601, tmax = 467164801
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='996729', job_status='RUN', time_executed='2021-09-08 14:23:37.401699', time_epoch_executed='1631136217.4' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='878'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996729

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996729/ft1_4FGL_J1349.5-1131_daily_bin878.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996729/ft2_4FGL_J1349.5-1131_daily_bin878.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996729/ft1_4FGL_J1349.5-1131_daily_bin878.fits outfile=/scratch/kocevski/996729/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin878.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=466905601.0 tmax=467164801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.65
user 3.43
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996729/ft1_filtered_4FGL_J1349.5-1131_daily_bin878.fits" evtable="EVENTS" scfile=/scratch/kocevski/996729/ft2_4FGL_J1349.5-1131_daily_bin878.fits sctable="SC_DATA" outfile=/scratch/kocevski/996729/ltcube_466905601_467164801_4FGL_J1349.5-1131_daily_bin878.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/996729/ft2_4FGL_J1349.5-1131_daily_bin878.fits
.....................!
real 16.88
user 16.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996729/ft1_filtered_4FGL_J1349.5-1131_daily_bin878.fits evtable="EVENTS" scfile=/scratch/kocevski/996729/ft2_4FGL_J1349.5-1131_daily_bin878.fits sctable="SC_DATA" expcube=/scratch/kocevski/996729/ltcube_466905601_467164801_4FGL_J1349.5-1131_daily_bin878.fits outfile=/scratch/kocevski/996729/expmap_466905601_467164801_4FGL_J1349.5-1131_daily_bin878.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/996729/ltcube_466905601_467164801_4FGL_J1349.5-1131_daily_bin878.fits
.....................!
real 191.64
user 186.87
sys 4.29

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/996729/ft1_filtered_4FGL_J1349.5-1131_daily_bin878.fits scfile=/scratch/kocevski/996729/ft2_4FGL_J1349.5-1131_daily_bin878.fits outfile=/scratch/kocevski/996729/cmap_466905601_467164801_4FGL_J1349.5-1131_daily_bin878.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=207.387 yref=-11.5188 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/996729/ft1_filtered_4FGL_J1349.5-1131_daily_bin878.fits evtable="EVENTS" scfile=/scratch/kocevski/996729/ft2_4FGL_J1349.5-1131_daily_bin878.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996729/Model_4FGL_J1349.5-1131_daily_bin878.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/996729/ft1_filtered_4FGL_J1349.5-1131_daily_bin878.fits.....................!
real 74.99
user 73.53
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.038       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7891       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11734E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9145       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.274       1.0000         .10000E-03   10000.    
     6 'norm      '    .50762       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.3413       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9928       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9990       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.936       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17490E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7328       1.0000         .10000E-03   10000.    
    16 'norm      '    .10359E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .23173E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    8.8137       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5246       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1921       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0842       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=   9724.930     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2444 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.039        11.695       -.80849E-07   -.12320E-04
   2  norm          1.7895        3.6023       -.41962E-07   -.62972E-03
   3  Prefactor     .10000E-03    13.529       -.94056E-07** at limit **
   4  Prefactor     7.9168        9.9792       -.11812E-05   -.13037E-03
   5  Prefactor     38.250        23.006        .42972E-06   -.57295E-03
   6  norm          .50768        .96626        .14214E-06    .28874E-05
   7  norm          .10000E-03    3.6345        .82203E-06** at limit **
   8  norm          9.3359        8.4280       -.28914E-05   -.44170E-03
   9  Prefactor     .10000E-03    4.3063       -.50809E-08** at limit **
  10  norm          .10000E-03    8.4062       -.21999E-06** at limit **
  11  Prefactor     2.9922        6.5290       -.12053E-06   -.43808E-03
  12  norm          1.9989        2.2763        .14661E-06   -.22128E-04
  13  Prefactor     20.933        8.1885        .45204E-06   -.53735E-03
  14  Prefactor     .10000E-03    63.877        .82872E-06** at limit **
  15  norm          1.7340        9.2561        .48147E-05   -.79650E-04
  16  norm          .10000E-03    1.0431        .83932E-07** at limit **
  17  norm          .10007E-03    6.7272       -.35417E-06** at limit **
  18  norm          8.8116        6.0174       -.97105E-06   -.44281E-04
  19  Prefactor     .10000E-03    22.386       -.61667E-06** at limit **
  20  Prefactor     4.5206        13.441       -.23725E-05   -.62197E-05
  21  Normalizat    1.1921        .21557        .16380E-06   -.18621E-03
  22  Prefactor     1.0842        .10969        .20509E-06   -.26811E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.0385
  norm       = 1.78951
  Prefactor  = 0.0001
  Prefactor  = 7.91683
  Prefactor  = 38.25
  norm       = 0.50768
  norm       = 0.000100002
  norm       = 9.33593
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.99222
  norm       = 1.99891
  Prefactor  = 20.9328
  Prefactor  = 0.0001
  norm       = 1.73403
  norm       = 0.0001
  norm       = 0.000100072
  norm       = 8.81156
  Prefactor  = 0.0001
  Prefactor  = 4.52057
  Normalizat = 1.19208
  Prefactor  = 1.08423
 **********
 **   18 **HESSE 
 **********

 FCN=   9724.930     FROM HESSE     STATUS=OK           360 CALLS     2804 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.039        11.693        .10001E-03   -1.4907    
   2  norm          1.7895        6.4971        .15637E-02   -1.5440    
   3  Prefactor     .10000E-03    14.164        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.9168        9.9943        .14253E-03   -1.5145    
   5  Prefactor     38.250        19.548        .64785E-04   -1.4470    
   6  norm          .50768        .90620        .12735E-02   -1.5565    
   7  norm          .10000E-03    5.8899        .29837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.3359        8.4103        .13113E-03   -1.5097    
   9  Prefactor     .10000E-03    4.3155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.4084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9922        7.6147        .11733E-02   -1.5362    
  12  norm          1.9989        2.2733        .15436E-03   -1.5425    
  13  Prefactor     20.933        7.9155        .87538E-04   -1.4793    
  14  Prefactor     .10000E-03    64.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7340        8.6465        .31887E-03   -1.5445    
  16  norm          .10000E-03    1.9795        .19305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10007E-03    6.6197        .92950E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.8116        5.9772        .13501E-03   -1.5114    
  19  Prefactor     .10000E-03    22.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.5206        13.418        .18927E-03   -1.5283    
  21  Normalizat    1.1921        .24888        .34695E-03   -.86848    
  22  Prefactor     1.0842        .12757        .19585E-03   -.89972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00583e-09
Minuit parameter uncertainties:
  1  11.6942
  2  6.4997
  3  2.9882e-05
  4  9.99645
  5  19.5514
  6  0.906224
  7  0.00023014
  8  8.4114
  9  4.77533e-08
  10  7.42262e-07
  11  7.61717
  12  2.27336
  13  7.91587
  14  3.63006e-05
  15  7.74582
  16  2.06385e-05
  17  0.00138128
  18  5.97762
  19  7.28797e-06
  20  13.4264
  21  0.249124
  22  0.12761
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.093e+01  7.916e+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.084e+00  1.276e-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.192e+00  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.44
Ra Dec: 207.387 -11.519
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 2.04e-07 +/- 7.69e-08
Energy Flux (Fixed Index): 5.95e-05 +/- 2.25e-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) = 9724.42690175
delta logL = 0.502622471822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9724.40869581
delta logL = 0.52082840848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.459       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8541       1.0000          .0000       10.000    
     3 'Normalizat'    1.1486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1029       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=   9724.409     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      273 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.459        9.1458        .10533E-03    .12801E-03
   2  Index         2.8542        .42541        .40271E-02    .59809E-04
   3  Normalizat    1.1485        .23901        .35239E-03   -.89430E-04
   4  Prefactor     1.1029        .12759        .19441E-03   -.88463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4587
  Index      = 2.8542
  Normalizat = 1.14853
  Prefactor  = 1.10294
 **********
 **   18 **HESSE 
 **********

 FCN=   9724.409     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.459        8.3243        .42133E-05   -1.4947    
   2  Index         2.8542        .38696        .16108E-03   -.44356    
   3  Normalizat    1.1485        .23893        .14095E-04   -.88209    
   4  Prefactor     1.1029        .12745        .38883E-04   -.89373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26413e-11
Minuit parameter uncertainties:
  1  8.32492
  2  0.387436
  3  0.239157
  4  0.127481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996729': 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) = 9724.40869579
delta logL = 0.52082843158

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.446e+01  8.325e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.854e+00  3.874e-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.103e+00  1.275e-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.149e+00  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.82
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 2.85 +/- 0.39
Photon Flux (Free Index): 2.33e-07 +/- 7.63e-08
Energy Flux (Free Index): 5.03e-05 +/- 1.77e-05

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/996729/cmap_HighResolution_466905601_467164801_4FGL_J1349.5-1131_daily_bin878.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.04e-07', energy_flux2='5.03e-05', photon_flux_error='7.69e-08', dlogl='5.21e-01', energy_flux='5.95e-05', photon_flux2='2.33e-07', job_status='DONE', time_completed='2021-09-08 14:35:35.354230', photon_index_error2='0.39', photon_index2='2.85', ts='14.44', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='1.19', time_epoch_completed='1631136935.35', return_code='0', job_id='996729', GAL2='1.10', EG2='1.15', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='7.63e-08', ts2='15.82', photon_index='2.49' WHERE bin_id='878' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:35:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 996729: <4FGL_J1349.5-1131_daily_bin878> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin878> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 14:20:35 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:21:19 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:21:19 2021
Terminated at Wed Sep  8 14:35:36 2021
Results reported at Wed Sep  8 14:35:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin878 207.387 -11.5188 466905601 467164801 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 :                                   713.38 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            901 sec.

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

