/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 123 seconds before starting...
Proceeding.

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

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

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

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

number of points = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1349.5-1131_daily_bin395
RA = 207.387, Dec = -11.5188
tmin = 341712001, tmax = 341971201
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='993882', job_status='RUN', time_executed='2021-09-08 14:12:40.834100', time_epoch_executed='1631135560.83' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993882

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993882/ft1_4FGL_J1349.5-1131_daily_bin395.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993882/ft2_4FGL_J1349.5-1131_daily_bin395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993882/ft1_4FGL_J1349.5-1131_daily_bin395.fits outfile=/scratch/kocevski/993882/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin395.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=341712001.0 tmax=341971201.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.42
user 3.18
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993882/ft1_filtered_4FGL_J1349.5-1131_daily_bin395.fits" evtable="EVENTS" scfile=/scratch/kocevski/993882/ft2_4FGL_J1349.5-1131_daily_bin395.fits sctable="SC_DATA" outfile=/scratch/kocevski/993882/ltcube_341712001_341971201_4FGL_J1349.5-1131_daily_bin395.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/993882/ft2_4FGL_J1349.5-1131_daily_bin395.fits
.....................!
real 14.23
user 13.81
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993882/ft1_filtered_4FGL_J1349.5-1131_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/993882/ft2_4FGL_J1349.5-1131_daily_bin395.fits sctable="SC_DATA" expcube=/scratch/kocevski/993882/ltcube_341712001_341971201_4FGL_J1349.5-1131_daily_bin395.fits outfile=/scratch/kocevski/993882/expmap_341712001_341971201_4FGL_J1349.5-1131_daily_bin395.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/993882/ltcube_341712001_341971201_4FGL_J1349.5-1131_daily_bin395.fits
.....................!
real 194.48
user 188.34
sys 5.19

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/993882/ft1_filtered_4FGL_J1349.5-1131_daily_bin395.fits scfile=/scratch/kocevski/993882/ft2_4FGL_J1349.5-1131_daily_bin395.fits outfile=/scratch/kocevski/993882/cmap_341712001_341971201_4FGL_J1349.5-1131_daily_bin395.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/993882/ft1_filtered_4FGL_J1349.5-1131_daily_bin395.fits scfile=/scratch/kocevski/993882/ft2_4FGL_J1349.5-1131_daily_bin395.fits outfile=/scratch/kocevski/993882/cmap_HighResolution_341712001_341971201_4FGL_J1349.5-1131_daily_bin395.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/993882/ft1_filtered_4FGL_J1349.5-1131_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/993882/ft2_4FGL_J1349.5-1131_daily_bin395.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993882/Model_4FGL_J1349.5-1131_daily_bin395.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/993882/ft1_filtered_4FGL_J1349.5-1131_daily_bin395.fits.....................!
real 63.74
user 62.34
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5113       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0517       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.334       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .65401       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12573E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.075       1.0000         .10000E-03   10000.    
    12 'norm      '    6.3515       1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.491       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.4873       1.0000         .10000E-03   10000.    
    16 'norm      '    .10203E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    23.717       1.0000         .10000E-03   10000.    
    18 'norm      '    18.290       1.0000         .10000E-03   10000.    
    19 'Prefactor '    62.603       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1617       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1991       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=   7694.231     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2410 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5119        10.089       -.29488E-07    .68612E-05
   2  norm          1.0496        1.3224        .16177E-06   -.57175E-03
   3  Prefactor     .10000E-03    4.2041       -.40886E-07** at limit **
   4  Prefactor     34.338        12.670       -.27314E-06    .25874E-04
   5  Prefactor     .10000E-03    9.3508        .59249E-07** at limit **
   6  norm          .65371        1.4992       -.29328E-06   -.17251E-03
   7  norm          .10000E-03    1.3918       -.23094E-07** at limit **
   8  norm          .10000E-03    2.1768        .90012E-08** at limit **
   9  Prefactor     .10000E-03    30.747        .10941E-04** at limit **
  10  norm          .10000E-03    16.365       -.49208E-06** at limit **
  11  Prefactor     29.070        18.063       -.92891E-06   -.21035E-03
  12  norm          6.3515        5.4432       -.37495E-05   -.75049E-04
  13  Prefactor     38.493        9.8435        .76751E-07    .36175E-04
  14  Prefactor     .10000E-03    47.641       -.46420E-05** at limit **
  15  norm          6.4874        6.7330        .52775E-06    .10663E-04
  16  norm          .10000E-03    1.4738       -.38669E-07** at limit **
  17  norm          23.717        18.027       -.19054E-06    .39112E-05
  18  norm          18.291        10.075        .74771E-06    .28446E-04
  19  Prefactor     62.594        39.064       -.74797E-05    .12100E-04
  20  Prefactor     .10000E-03    28.540       -.71790E-05** at limit **
  21  Normalizat    1.1615        .29018        .23212E-05   -.90905E-05
  22  Prefactor     1.1992        .14049        .73560E-06   -.14324E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.51192
  norm       = 1.04963
  Prefactor  = 0.0001
  Prefactor  = 34.3378
  Prefactor  = 0.0001
  norm       = 0.653705
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.0701
  norm       = 6.35149
  Prefactor  = 38.493
  Prefactor  = 0.0001
  norm       = 6.48736
  norm       = 0.0001
  norm       = 23.7174
  norm       = 18.2908
  Prefactor  = 62.594
  Prefactor  = 0.0001
  Normalizat = 1.16153
  Prefactor  = 1.19923
 **********
 **   18 **HESSE 
 **********

 FCN=   7694.231     FROM HESSE     STATUS=OK           346 CALLS     2756 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5119        10.088        .13741E-03   -1.5124    
   2  norm          1.0496        17.427        .24103E-02   -1.5503    
   3  Prefactor     .10000E-03    4.2135        .17563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.338        12.726        .68390E-04   -1.4535    
   5  Prefactor     .10000E-03    9.3711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .65371        1.4797        .15153E-03   -1.5546    
   7  norm          .10000E-03    1.3995        .10103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.1797        .12637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    16.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.070        18.105        .74302E-04   -1.4629    
  12  norm          6.3515        5.4414        .15927E-03   -1.5204    
  13  Prefactor     38.493        9.8598        .64603E-04   -1.4466    
  14  Prefactor     .10000E-03    47.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.4874        6.7246        .15757E-03   -1.5199    
  16  norm          .10000E-03    3.3454        .20555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          23.717        18.027        .82251E-04   -1.4734    
  18  norm          18.291        10.048        .93650E-04   -1.4852    
  19  Prefactor     62.594        39.024        .50716E-04   -1.4124    
  20  Prefactor     .10000E-03    28.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1615        .32538        .41111E-03   -.87800    
  22  Prefactor     1.1992        .15915        .21277E-03   -.86355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13548e-09
Minuit parameter uncertainties:
  1  10.0898
  2  8.55626
  3  4.6117e-06
  4  12.7268
  5  5.26872e-06
  6  1.4798
  7  1.51171e-06
  8  8.66118e-07
  9  0.000116712
  10  7.68244e-06
  11  18.1083
  12  5.44185
  13  9.8602
  14  7.07866e-05
  15  6.72543
  16  1.69718e-06
  17  18.0316
  18  10.0489
  19  39.0398
  20  1.54994e-05
  21  0.325943
  22  0.159213
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  3.849e+01  9.860e+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.199e+00  1.592e-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.162e+00  3.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.53
Ra Dec: 207.387 -11.519
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 3.74e-07 +/- 9.58e-08
Energy Flux (Fixed Index): 1.09e-04 +/- 2.80e-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) = 7693.94129247
delta logL = 0.289220114881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7693.93798082
delta logL = 0.292531766668

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.142       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2898       1.0000          .0000       10.000    
     3 'Normalizat'    1.2151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1814       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=   7693.938     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      293 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.142        12.107        .61035E-04   -.28525E-03
   2  Index         2.2898        .26160        .43275E-02   -.14411E-03
   3  Normalizat    1.2152        .30803        .40353E-03    .18397E-04
   4  Prefactor     1.1814        .15778        .21417E-03    .39015E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.1422
  Index      = 2.28975
  Normalizat = 1.21516
  Prefactor  = 1.18139
 **********
 **   18 **HESSE 
 **********

 FCN=   7693.938     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.142        11.991        .12207E-04   -1.4393    
   2  Index         2.2898        .25885        .17310E-03   -.57287    
   3  Normalizat    1.2152        .30814        .16141E-04   -.86136    
   4  Prefactor     1.1814        .15784        .42835E-04   -.86906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.05378e-11
Minuit parameter uncertainties:
  1  11.9912
  2  0.259017
  3  0.308602
  4  0.157903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993882': 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) = 7693.93798079
delta logL = 0.292531796142

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  4.314e+01  1.199e+01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.290e+00  2.590e-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.181e+00  1.579e-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.215e+00  3.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.86
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 2.29 +/- 0.26
Photon Flux (Free Index): 3.23e-07 +/- 1.09e-07
Energy Flux (Free Index): 1.24e-04 +/- 4.06e-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/993882/cmap_HighResolution_341712001_341971201_4FGL_J1349.5-1131_daily_bin395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.74e-07', energy_flux2='1.24e-04', photon_flux_error='9.58e-08', dlogl='2.93e-01', energy_flux='1.09e-04', photon_flux2='3.23e-07', job_status='DONE', time_completed='2021-09-08 14:22:58.519997', photon_index_error2='0.26', photon_index2='2.29', ts='37.53', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='4.06e-05', EG='1.16', time_epoch_completed='1631136178.52', return_code='0', job_id='993882', GAL2='1.18', EG2='1.22', return_code2='0', energy_flux_error='2.80e-05', photon_flux_error2='1.09e-07', ts2='37.86', photon_index='2.49' WHERE bin_id='395' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:22:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 993882: <4FGL_J1349.5-1131_daily_bin395> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin395> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 14:10:19 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:10:28 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:10:28 2021
Terminated at Wed Sep  8 14:22:59 2021
Results reported at Wed Sep  8 14:22:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin395 207.387 -11.5188 341712001 341971201 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 :                                   616.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            760 sec.

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

