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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1049
RA = 207.387, Dec = -11.5188
tmin = 511228801, tmax = 511488001
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='997929', job_status='RUN', time_executed='2021-09-08 14:28:25.947018', time_epoch_executed='1631136505.95' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997929

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997929/ft1_4FGL_J1349.5-1131_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997929/ft2_4FGL_J1349.5-1131_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997929/ft1_4FGL_J1349.5-1131_daily_bin1049.fits outfile=/scratch/kocevski/997929/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1049.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=511228801.0 tmax=511488001.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.51
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997929/ft1_filtered_4FGL_J1349.5-1131_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/997929/ft2_4FGL_J1349.5-1131_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/997929/ltcube_511228801_511488001_4FGL_J1349.5-1131_daily_bin1049.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/997929/ft2_4FGL_J1349.5-1131_daily_bin1049.fits
.....................!
real 16.91
user 16.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997929/ft1_filtered_4FGL_J1349.5-1131_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/997929/ft2_4FGL_J1349.5-1131_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/997929/ltcube_511228801_511488001_4FGL_J1349.5-1131_daily_bin1049.fits outfile=/scratch/kocevski/997929/expmap_511228801_511488001_4FGL_J1349.5-1131_daily_bin1049.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/997929/ltcube_511228801_511488001_4FGL_J1349.5-1131_daily_bin1049.fits
.....................!
real 192.05
user 187.01
sys 4.00

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/997929/ft1_filtered_4FGL_J1349.5-1131_daily_bin1049.fits scfile=/scratch/kocevski/997929/ft2_4FGL_J1349.5-1131_daily_bin1049.fits outfile=/scratch/kocevski/997929/cmap_511228801_511488001_4FGL_J1349.5-1131_daily_bin1049.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997929/ft1_filtered_4FGL_J1349.5-1131_daily_bin1049.fits scfile=/scratch/kocevski/997929/ft2_4FGL_J1349.5-1131_daily_bin1049.fits outfile=/scratch/kocevski/997929/cmap_HighResolution_511228801_511488001_4FGL_J1349.5-1131_daily_bin1049.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997929/ft1_filtered_4FGL_J1349.5-1131_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/997929/ft2_4FGL_J1349.5-1131_daily_bin1049.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997929/Model_4FGL_J1349.5-1131_daily_bin1049.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/997929/ft1_filtered_4FGL_J1349.5-1131_daily_bin1049.fits.....................!
real 56.43
user 54.86
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.780       1.0000         .10000E-03   10000.    
     2 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0441       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.8098       1.0000         .10000E-03   10000.    
     7 'norm      '    10.113       1.0000         .10000E-03   10000.    
     8 'norm      '    18.495       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4799       1.0000         .10000E-03   10000.    
    12 'norm      '    13.826       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.559       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .25425E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    19.812       1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0572       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.8076       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .74888       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=   6372.707     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2027 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.785        21.779        .40600E-05   -.11425E-04
   2  norm          .10000E-03    5.3913        .64479E-07** at limit **
   3  Prefactor     .10000E-03    4.0550        .37731E-07** at limit **
   4  Prefactor     7.0490        10.938       -.60404E-06   -.96149E-04
   5  Prefactor     .10000E-03    15.088       -.68098E-06** at limit **
   6  norm          2.8110        2.0252       -.16082E-06   -.51921E-03
   7  norm          10.110        8.8719       -.26020E-06   -.14654E-03
   8  norm          18.495        17.408        .40081E-06   -.12051E-04
   9  Prefactor     .10000E-03    6.6461       -.11581E-06** at limit **
  10  norm          .10000E-03    28.813        .79501E-05** at limit **
  11  Prefactor     4.4803        10.173       -.30888E-06   -.11960E-03
  12  norm          13.826        7.2226       -.76163E-08   -.10653E-04
  13  Prefactor     15.561        8.9408       -.47147E-07   -.35879E-04
  14  Prefactor     .10000E-03    30.555       -.75346E-05** at limit **
  15  norm          .10000E-03    2.2933        .11250E-07** at limit **
  16  norm          .10000E-03    1.5898       -.15739E-06** at limit **
  17  norm          19.813        13.323        .10896E-06    .10563E-04
  18  norm          .10000E-03    3.6749        .94019E-07** at limit **
  19  Prefactor     .10000E-03    9.4428        .36535E-06** at limit **
  20  Prefactor     3.0544        36.683       -.67514E-05   -.43245E-04
  21  Normalizat    1.8070        .28009       -.65382E-06    .70448E-04
  22  Prefactor     .74913        .13443        .46819E-06   -.49561E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 21.7851
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.04903
  Prefactor  = 0.0001
  norm       = 2.81104
  norm       = 10.1097
  norm       = 18.495
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.48028
  norm       = 13.826
  Prefactor  = 15.5614
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 19.8132
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.05438
  Normalizat = 1.80697
  Prefactor  = 0.749132
 **********
 **   18 **HESSE 
 **********

 FCN=   6372.707     FROM HESSE     STATUS=OK           344 CALLS     2371 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.785        21.680        .85826E-04   -1.4774    
   2  norm          .10000E-03    5.3998        .18102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.0687        .15698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.0490        10.996        .15115E-03   -1.5177    
   5  Prefactor     .10000E-03    15.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8110        2.0394        .90883E-04   -1.5373    
   7  norm          10.110        8.9156        .12600E-03   -1.5072    
   8  norm          18.495        17.488        .93130E-04   -1.4848    
   9  Prefactor     .10000E-03    6.6558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    28.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.4803        10.179        .19023E-03   -1.5285    
  12  norm          13.826        7.2254        .10772E-03   -1.4964    
  13  Prefactor     15.561        8.9760        .10154E-03   -1.4919    
  14  Prefactor     .10000E-03    30.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.2944        .11803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.2178        .19159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          19.813        13.324        .89983E-04   -1.4817    
  18  norm          .10000E-03    3.7003        .14942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.4537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0544        37.712        .23202E-03   -1.5358    
  21  Normalizat    1.8070        .32699        .31514E-03   -.69482    
  22  Prefactor     .74913        .15754        .23315E-03   -1.0163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12894e-10
Minuit parameter uncertainties:
  1  21.688
  2  4.75988e-06
  3  1.63654e-06
  4  10.9994
  5  1.24001e-05
  6  2.0394
  7  8.91672
  8  17.4929
  9  2.33576e-06
  10  1.52212e-05
  11  10.1834
  12  7.2259
  13  8.97674
  14  5.28734e-06
  15  5.72304e-07
  16  0.000109785
  17  13.3258
  18  1.29122e-06
  19  1.7466e-06
  20  21.4816
  21  0.327384
  22  0.15763
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.556e+01  8.977e+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:  7.491e-01  1.576e-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.807e+00  3.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.41
Ra Dec: 207.387 -11.519
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 1.51e-07 +/- 8.72e-08
Energy Flux (Fixed Index): 4.42e-05 +/- 2.55e-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) = 6371.92391578
delta logL = 0.783142874107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6371.91521849
delta logL = 0.791840167861

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3446       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4801       1.0000          .0000       10.000    
     3 'Normalizat'    1.7082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79092       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=   6371.915     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      249 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3306        41.042        .43460E-02    .78225E-03
   2  Index         3.4818        2.9231        .10859        .23485E-03
   3  Normalizat    1.7080        .10912        .72733E-01   -.31567E-03
   4  Prefactor     .79103        .55245E-01    .43599E-01   -.27497E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.33058
  Index      = 3.48182
  Normalizat = 1.70799
  Prefactor  = 0.791035
 **********
 **   18 **HESSE 
 **********

 FCN=   6371.915     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3306        59.646        .84052E-04   -1.5246    
   2  Index         3.4818        3.6989        .43257E-02   -.30851    
   3  Normalizat    1.7080        .32929        .32178E-03   -.72090    
   4  Prefactor     .79103        .18041        .22774E-03   -1.0006    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.22142e-10
Minuit parameter uncertainties:
  1  35.7071
  2  4.23515
  3  0.32971
  4  0.180549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997929': 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): 102
logL (Free Index) = 6371.91521731
delta logL = 0.791841347703

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  5.331e+00  3.571e+01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.482e+00  4.235e+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:  7.910e-01  1.805e-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.708e+00  3.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.30
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 3.48 +/- 4.24
Photon Flux (Free Index): 2.25e-07 +/- 1.11e-07
Energy Flux (Free Index): 3.75e-05 +/- 4.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/997929/cmap_HighResolution_511228801_511488001_4FGL_J1349.5-1131_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.51e-07', energy_flux2='3.75e-05', photon_flux_error='8.72e-08', dlogl='7.92e-01', energy_flux='4.42e-05', photon_flux2='2.25e-07', job_status='DONE', time_completed='2021-09-08 14:40:09.380786', photon_index_error2='4.24', photon_index2='3.48', ts='4.41', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='4.46e-05', EG='1.81', time_epoch_completed='1631137209.38', return_code='0', job_id='997929', GAL2='0.79', EG2='1.71', return_code2='102', energy_flux_error='2.55e-05', photon_flux_error2='1.11e-07', ts2='6.30', photon_index='2.49' WHERE bin_id='1049' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:40:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 997929: <4FGL_J1349.5-1131_daily_bin1049> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1049 207.387 -11.5188 511228801 511488001 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 :                                   543.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            891 sec.

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

