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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin895
RA = 207.387, Dec = -11.5188
tmin = 471312001, tmax = 471571201
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='996752', job_status='RUN', time_executed='2021-09-08 14:25:07.214109', time_epoch_executed='1631136307.21' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='895'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996752

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996752/ft1_4FGL_J1349.5-1131_daily_bin895.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996752/ft2_4FGL_J1349.5-1131_daily_bin895.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996752/ft1_4FGL_J1349.5-1131_daily_bin895.fits outfile=/scratch/kocevski/996752/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin895.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=471312001.0 tmax=471571201.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 5.06
user 4.77
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996752/ft1_filtered_4FGL_J1349.5-1131_daily_bin895.fits" evtable="EVENTS" scfile=/scratch/kocevski/996752/ft2_4FGL_J1349.5-1131_daily_bin895.fits sctable="SC_DATA" outfile=/scratch/kocevski/996752/ltcube_471312001_471571201_4FGL_J1349.5-1131_daily_bin895.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/996752/ft2_4FGL_J1349.5-1131_daily_bin895.fits
.....................!
real 13.97
user 13.54
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996752/ft1_filtered_4FGL_J1349.5-1131_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/996752/ft2_4FGL_J1349.5-1131_daily_bin895.fits sctable="SC_DATA" expcube=/scratch/kocevski/996752/ltcube_471312001_471571201_4FGL_J1349.5-1131_daily_bin895.fits outfile=/scratch/kocevski/996752/expmap_471312001_471571201_4FGL_J1349.5-1131_daily_bin895.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/996752/ltcube_471312001_471571201_4FGL_J1349.5-1131_daily_bin895.fits
.....................!
real 192.61
user 186.14
sys 5.48

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/996752/ft1_filtered_4FGL_J1349.5-1131_daily_bin895.fits scfile=/scratch/kocevski/996752/ft2_4FGL_J1349.5-1131_daily_bin895.fits outfile=/scratch/kocevski/996752/cmap_471312001_471571201_4FGL_J1349.5-1131_daily_bin895.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.58
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.978       1.0000         .10000E-03   10000.    
     2 'norm      '    .17150E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10731E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6751       1.0000         .10000E-03   10000.    
     8 'norm      '    6.4865       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.033       1.0000         .10000E-03   10000.    
    10 'norm      '    .69653E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0550       1.0000         .10000E-03   10000.    
    12 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.415       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8866       1.0000         .10000E-03   10000.    
    16 'norm      '    .98158       1.0000         .10000E-03   10000.    
    17 'norm      '    20.834       1.0000         .10000E-03   10000.    
    18 'norm      '    6.3206       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.784       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.998       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2875       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81869       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=   8066.841     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2424 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.987        11.694        .14723E-06    .61339E-05
   2  norm          .10000E-03    5.9179       -.30972E-06** at limit **
   3  Prefactor     .10000E-03    9.8845       -.18558E-06** at limit **
   4  Prefactor     .10000E-03    4.0608       -.68892E-07** at limit **
   5  Prefactor     .10000E-03    12.722        .66717E-08** at limit **
   6  norm          .10000E-03    .40890       -.46265E-07** at limit **
   7  norm          3.6675        2.9191       -.74873E-07    .71325E-04
   8  norm          6.4830        5.5300        .65160E-06    .59926E-04
   9  Prefactor     10.042        12.271       -.92298E-06   -.15381E-05
  10  norm          .10001E-03    18.047        .14740E-05** at limit **
  11  Prefactor     4.0565        9.0642        .34408E-05   -.16473E-05
  12  norm          .10000E-03    .97427        .19263E-06** at limit **
  13  Prefactor     .10000E-03    1.7006        .14085E-06** at limit **
  14  Prefactor     31.448        37.460       -.22016E-05    .17701E-03
  15  norm          2.8853        4.5052        .36182E-05    .83589E-04
  16  norm          .98530        1.8472       -.18109E-06   -.66708E-03
  17  norm          20.836        12.860        .66877E-07   -.16344E-05
  18  norm          6.3210        5.4833        .11140E-06    .28105E-04
  19  Prefactor     32.821        21.014        .39706E-06   -.28716E-04
  20  Prefactor     27.003        22.096        .13924E-06    .17913E-04
  21  Normalizat    1.2873        .19304       -.35393E-06    .98280E-04
  22  Prefactor     .81874        .10107       -.39860E-06    .57252E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.987
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.66746
  norm       = 6.48297
  Prefactor  = 10.042
  norm       = 0.000100014
  Prefactor  = 4.05649
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.448
  norm       = 2.88526
  norm       = 0.985304
  norm       = 20.836
  norm       = 6.32104
  Prefactor  = 32.8212
  Prefactor  = 27.0035
  Normalizat = 1.28735
  Prefactor  = 0.818735
 **********
 **   18 **HESSE 
 **********

 FCN=   8066.841     FROM HESSE     STATUS=OK           354 CALLS     2778 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.987        11.694        .10349E-03   -1.4934    
   2  norm          .10000E-03    26.368        .42459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0778        .17669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .41577        .56042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6675        2.9113        .12541E-03   -1.5325    
   8  norm          6.4830        5.5193        .78790E-03   -1.5199    
   9  Prefactor     10.042        12.198        .12651E-03   -1.5074    
  10  norm          .10001E-03    129.64        .73864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0565        9.0106        .10012E-02   -1.5305    
  12  norm          .10000E-03    .97831        .86647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7156        .11435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.448        37.579        .71488E-04   -1.4586    
  15  norm          2.8853        4.4990        .11514E-02   -1.5368    
  16  norm          .98530        1.6285        .15779E-02   -1.5509    
  17  norm          20.836        12.861        .87751E-04   -1.4795    
  18  norm          6.3210        5.4488        .15966E-03   -1.5205    
  19  Prefactor     32.821        21.009        .69984E-04   -1.4562    
  20  Prefactor     27.003        22.114        .77100E-04   -1.4668    
  21  Normalizat    1.2873        .22146        .29819E-03   -.83945    
  22  Prefactor     .81874        .11676        .19328E-03   -.99041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77186e-10
Minuit parameter uncertainties:
  1  11.6953
  2  0.000179942
  3  3.24298e-05
  4  8.73477e-06
  5  3.76949e-06
  6  1.71016e-06
  7  2.91138
  8  5.51971
  9  12.2012
  10  0.00267718
  11  9.0136
  12  1.12654e-05
  13  7.13451e-06
  14  37.6074
  15  4.4995
  16  1.62856
  17  12.8624
  18  5.44918
  19  21.0133
  20  22.121
  21  0.221618
  22  0.116793
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  7.135e-06  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.187e-01  1.168e-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.287e+00  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/996752/likelihoodResults_471312001_471571201_4FGL_J1349.5-1131_daily_bin895.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): 102
logL (Free Index) = 8066.84415719
delta logL = -0.00277229670974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8066.84138819
delta logL = -3.29484737449e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4962       1.0000          .0000       10.000    
     3 'Normalizat'    1.2873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81858       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=   8066.841     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      238 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0253        .11436E-02** at limit **
   2  Index         2.4984        6.2472        .50000       -.11336E-04
   3  Normalizat    1.2873        .21532        .29819E-03   -.70609E-04
   4  Prefactor     .81874        .11486        .19328E-03   -.58820E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.4984
  Normalizat = 1.28734
  Prefactor  = 0.818736
 **********
 **   18 **HESSE 
 **********

 FCN=   8066.841     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7265        .22872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4984        6.2468        .50000       -.52397    
   3  Normalizat    1.2873        .21548        .11928E-04   -.83945    
   4  Prefactor     .81874        .11495        .77312E-05   -.99041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88284e-10
Minuit parameter uncertainties:
  1  3.91987e-05
  2  4.34335
  3  0.215632
  4  0.114984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996752': 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) = 8066.84138489
delta logL = 1.11094777822e-08

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.920e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.498e+00  4.343e+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.187e-01  1.150e-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.287e+00  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.387 -11.519

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/996752/cmap_HighResolution_471312001_471571201_4FGL_J1349.5-1131_daily_bin895.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-03', job_status='DONE', photon_flux_upper_limit='7.02e-08', time_completed='2021-09-08 14:36:51.346327', job_id='996752', GAL2='0.82', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631137011.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.11e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='895' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:36:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 996752: <4FGL_J1349.5-1131_daily_bin895> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin895 207.387 -11.5188 471312001 471571201 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 :                                   699.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            974 sec.

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

