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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1229
RA = 207.387, Dec = -11.5188
tmin = 557884801, tmax = 558144001
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='998914', job_status='RUN', time_executed='2021-09-08 14:31:34.515568', time_epoch_executed='1631136694.52' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998914

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998914/ft1_4FGL_J1349.5-1131_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998914/ft2_4FGL_J1349.5-1131_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998914/ft1_4FGL_J1349.5-1131_daily_bin1229.fits outfile=/scratch/kocevski/998914/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1229.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=557884801.0 tmax=558144001.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.08
user 3.83
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998914/ft1_filtered_4FGL_J1349.5-1131_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/998914/ft2_4FGL_J1349.5-1131_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/998914/ltcube_557884801_558144001_4FGL_J1349.5-1131_daily_bin1229.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/998914/ft2_4FGL_J1349.5-1131_daily_bin1229.fits
.....................!
real 13.79
user 13.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998914/ft1_filtered_4FGL_J1349.5-1131_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/998914/ft2_4FGL_J1349.5-1131_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/998914/ltcube_557884801_558144001_4FGL_J1349.5-1131_daily_bin1229.fits outfile=/scratch/kocevski/998914/expmap_557884801_558144001_4FGL_J1349.5-1131_daily_bin1229.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/998914/ltcube_557884801_558144001_4FGL_J1349.5-1131_daily_bin1229.fits
.....................!
real 190.87
user 186.06
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/998914/ft1_filtered_4FGL_J1349.5-1131_daily_bin1229.fits scfile=/scratch/kocevski/998914/ft2_4FGL_J1349.5-1131_daily_bin1229.fits outfile=/scratch/kocevski/998914/cmap_557884801_558144001_4FGL_J1349.5-1131_daily_bin1229.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.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998914/ft1_filtered_4FGL_J1349.5-1131_daily_bin1229.fits scfile=/scratch/kocevski/998914/ft2_4FGL_J1349.5-1131_daily_bin1229.fits outfile=/scratch/kocevski/998914/cmap_HighResolution_557884801_558144001_4FGL_J1349.5-1131_daily_bin1229.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/998914/ft1_filtered_4FGL_J1349.5-1131_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/998914/ft2_4FGL_J1349.5-1131_daily_bin1229.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998914/Model_4FGL_J1349.5-1131_daily_bin1229.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/998914/ft1_filtered_4FGL_J1349.5-1131_daily_bin1229.fits.....................!
real 94.44
user 92.95
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.652       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0378       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19624E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.789       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1454       1.0000         .10000E-03   10000.    
     7 'norm      '    3.1419       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1838       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.315       1.0000         .10000E-03   10000.    
    10 'norm      '    15.969       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16312E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.3254       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7483       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10536E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .16182E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.572       1.0000         .10000E-03   10000.    
    17 'norm      '    31.198       1.0000         .10000E-03   10000.    
    18 'norm      '    87.329       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .85124E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1488       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87524       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=   12914.83     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2165 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.648        14.092        .11210E-05    .51607E-04
   2  norm          .10000E-03    2.6258       -.77370E-07** at limit **
   3  Prefactor     3.0373        5.8295       -.66788E-06   -.87037E-05
   4  Prefactor     .10000E-03    3.9087       -.49396E-06** at limit **
   5  Prefactor     29.791        16.323        .32372E-06    .12013E-03
   6  norm          1.1447        1.3137       -.10232E-06   -.20009E-03
   7  norm          3.1429        2.7916        .56538E-08    .89958E-04
   8  norm          1.1795        4.1973       -.30870E-06   -.23212E-03
   9  Prefactor     11.303        10.983       -.81391E-06   -.40720E-04
  10  norm          15.967        22.009        .54957E-05    .20742E-04
  11  Prefactor     .10000E-03    3.4352        .75117E-07** at limit **
  12  norm          7.3245        3.8600       -.11618E-06   -.40305E-04
  13  Prefactor     2.7605        1.3589        .26258E-06   -.32771E-02
  14  Prefactor     .10000E-03    39.374        .13713E-05** at limit **
  15  norm          .10000E-03    2.2798       -.39164E-06** at limit **
  16  norm          11.573        2.7585        .36093E-06   -.36031E-03
  17  norm          31.199        12.461        .38308E-08   -.27334E-05
  18  norm          87.340        11.469       -.31987E-05   -.12048E-02
  19  Prefactor     .27472E-02    11.447        .32048E-05    .60666E-04
  20  Prefactor     .10000E-03    5.0128        .51127E-07** at limit **
  21  Normalizat    1.1491        .18277        .15294E-05   -.19496E-03
  22  Prefactor     .87525        .87811E-01   -.54117E-07   -.23307E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.6482
  norm       = 0.0001
  Prefactor  = 3.0373
  Prefactor  = 0.000100001
  Prefactor  = 29.7907
  norm       = 1.14474
  norm       = 3.14295
  norm       = 1.17953
  Prefactor  = 11.3032
  norm       = 15.9667
  Prefactor  = 0.000100003
  norm       = 7.32453
  Prefactor  = 2.76051
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.573
  norm       = 31.1989
  norm       = 87.3405
  Prefactor  = 0.00274718
  Prefactor  = 0.0001
  Normalizat = 1.14906
  Prefactor  = 0.875245
 **********
 **   18 **HESSE 
 **********

 FCN=   12914.83     FROM HESSE     STATUS=OK           364 CALLS     2529 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.648        14.098        .88137E-04   -1.4799    
   2  norm          .10000E-03    2.6274        .17984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0373        5.7917        .23281E-03   -1.5359    
   4  Prefactor     .10000E-03    47.224        .41927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.791        16.219        .73407E-04   -1.4616    
   6  norm          1.1447        1.2907        .13083E-03   -1.5494    
   7  norm          3.1429        2.7547        .14625E-03   -1.5353    
   8  norm          1.1795        4.0624        .38877E-03   -1.5491    
   9  Prefactor     11.303        9.9679        .11910E-03   -1.5035    
  10  norm          15.967        21.965        .10023E-03   -1.4909    
  11  Prefactor     .10000E-03    23.899        .36320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.3245        3.8576        .14819E-03   -1.5167    
  13  Prefactor     2.7605        4.0610        .12278E-02   -1.5376    
  14  Prefactor     .10000E-03    39.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.8879        .32984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.573        2.7568        .87354E-04   -1.5027    
  17  norm          31.199        12.461        .71735E-04   -1.4590    
  18  norm          87.340        11.731        .21496E-03   -1.3836    
  19  Prefactor     .27472E-02    14.340        .99705E-01   -1.5698    
  20  Prefactor     .10000E-03    5.0262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1491        .21281        .34740E-03   -.88192    
  22  Prefactor     .87525        .10292        .20078E-03   -.97012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45908e-09
Minuit parameter uncertainties:
  1  14.1003
  2  1.48116e-06
  3  5.79274
  4  0.000433736
  5  16.2215
  6  1.29075
  7  2.75479
  8  4.06336
  9  9.9694
  10  21.9763
  11  0.000490833
  12  3.85772
  13  4.06144
  14  4.06621e-05
  15  0.000107191
  16  2.75686
  17  12.4624
  18  11.7316
  19  0.389766
  20  2.79193e-06
  21  0.212967
  22  0.102941
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.761e+00  4.061e+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:  8.752e-01  1.029e-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.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.55
Ra Dec: 207.387 -11.519
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998914/likelihoodResults_557884801_558144001_4FGL_J1349.5-1131_daily_bin1229.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) = 12913.6070995
delta logL = 1.22162574054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12913.5899553
delta logL = 1.23877001381

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2972       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7326       1.0000          .0000       10.000    
     3 'Normalizat'    1.0791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89647       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=   12913.59     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      259 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2967        11.749        .97062E-02    .16127E-02
   2  Index         3.7328        2.7155        .13557        .27218E-03
   3  Normalizat    1.0791        .48606E-01    .80610E-01    .35385E-04
   4  Prefactor     .89647        .25030E-01    .44960E-01    .97417E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.29666
  Index      = 3.73281
  Normalizat = 1.0791
  Prefactor  = 0.896471
 **********
 **   18 **HESSE 
 **********

 FCN=   12913.59     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2967        4.9333        .79140E-04   -1.5480    
   2  Index         3.7328        2.1318        .68797E-02   -.25623    
   3  Normalizat    1.0791        .20323        .35685E-03   -.90426    
   4  Prefactor     .89647        .10226        .19858E-03   -.96265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44654e-07
Minuit parameter uncertainties:
  1  4.93488
  2  2.20765
  3  0.203381
  4  0.102284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998914': 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) = 12913.5899552
delta logL = 1.23877006001

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.297e+00  4.935e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.733e+00  2.208e+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:  8.965e-01  1.023e-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.079e+00  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.20
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 3.73 +/- 2.21
Photon Flux (Free Index): 8.19e-08 +/- 5.48e-08
Energy Flux (Free Index): 1.29e-05 +/- 1.16e-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/998914/cmap_HighResolution_557884801_558144001_4FGL_J1349.5-1131_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.19e-03', comment='SUCCESS', energy_flux2='1.29e-05', dlogl='1.24e+00', photon_flux2='8.19e-08', job_status='DONE', time_completed='2021-09-08 14:46:55.251241', photon_index_error2='2.21', photon_index2='3.73', ts='0.55', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.16e-05', EG='1.15', time_epoch_completed='1631137615.25', return_code='0', job_id='998914', GAL2='0.90', EG2='1.08', return_code2='0', photon_flux_error2='5.48e-08', ts2='3.20', photon_index='2.49' WHERE bin_id='1229' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:46:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 998914: <4FGL_J1349.5-1131_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1229> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 14:30:22 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:30:25 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:30:25 2021
Terminated at Wed Sep  8 14:46:55 2021
Results reported at Wed Sep  8 14:46:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1229 207.387 -11.5188 557884801 558144001 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 :                                   911.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

